Commit Graph

7073 Commits

Author SHA1 Message Date
twinaphex efce4d0abf Revert "Add cb_set_shader_coords"
This reverts commit 06df028722.
2017-05-19 21:21:40 +02:00
twinaphex 06df028722 Add cb_set_shader_coords 2017-05-19 21:13:44 +02:00
Twinaphex 8a12bb9f04 Merge pull request #4945 from casdevel/d3d-winraw
Alow raw input driver to be used with Direct3D
2017-05-19 19:54:25 +02:00
twinaphex d8f5065d64 Add cb_set_shader_mvp 2017-05-19 19:52:33 +02:00
twinaphex 64fdadf60f Use cb_shader_use 2017-05-19 19:42:34 +02:00
twinaphex 452c02653e Turn gl_set_shader_viewport into gl_set_shader_viewports 2017-05-19 19:39:46 +02:00
Zoran Vuckovic 2eb7499b64 Alow raw input driver to be used with Direct3D 2017-05-19 19:36:14 +02:00
twinaphex a830051076 Update gx_gfx.c 2017-05-19 16:33:59 +02:00
twinaphex 1ffb1f4feb Use wrapper function for memcmp 2017-05-19 16:20:30 +02:00
Twinaphex 51bac3ef73 Merge pull request #4942 from casdevel/wgl-winraw
Allow raw input driver with OpenGL driver under Windows
2017-05-19 16:19:13 +02:00
Zoran Vuckovic 9358b0c3f3 Allow raw input driver with OpenGL driver under Windows 2017-05-19 16:13:32 +02:00
twinaphex c5485152aa Do away with conditional inside build_info 2017-05-19 15:59:28 +02:00
Twinaphex 5e0eec8857 Remove unused variable 2017-05-19 14:53:25 +02:00
twinaphex 2a54544eb3 Add cb_shader_use to video_frame_info 2017-05-19 14:24:19 +02:00
twinaphex 4144c8de35 Prevent coverity warning 2017-05-19 13:54:43 +02:00
Zoran Vuckovic 54b5d289b0 Fix crash in GLSL shader driver 2017-05-19 12:14:51 +02:00
twinaphex 24ce77155a Cleanup 2017-05-19 03:52:04 +02:00
twinaphex 9d74212a41 Buildfix 2017-05-19 03:35:32 +02:00
twinaphex b0398c1482 C89 build fixes 2017-05-19 03:34:53 +02:00
twinaphex 89dddaf9f0 Cleanups 2017-05-19 01:19:38 +02:00
twinaphex 4d24153870 Turn into static function 2017-05-19 00:07:24 +02:00
twinaphex 59b3344e72 Combine video_driver.c and video_shader_driver.c 2017-05-18 14:47:24 +02:00
twinaphex 4e7b376e18 Cleanups 2017-05-18 14:31:40 +02:00
twinaphex cb529822c6 Cleanups 2017-05-18 14:27:37 +02:00
twinaphex 374f8e8a19 Cleanups 2017-05-18 14:22:50 +02:00
twinaphex 2f72506959 Bind default function to filter_type callback 2017-05-18 14:20:05 +02:00
twinaphex 9d11133edf Cleanups - get rid of if conditionals 2017-05-18 14:18:01 +02:00
twinaphex 1411b9ee6e Do away with all these if conditionals 2017-05-18 14:06:50 +02:00
twinaphex 49bf9b62ae Cleanups 2017-05-18 09:46:04 +02:00
twinaphex d181f70303 Don't call video_viewport_get_system_av_info inside gfx/video_driver.c 2017-05-18 09:44:51 +02:00
twinaphex 4e04e95713 Buildfix 2017-05-18 04:03:49 +02:00
twinaphex c9af58494b Set video_context_driver functions to null functions if not
already set
2017-05-18 03:53:05 +02:00
twinaphex 3f7a30a4b3 Start hooking up dummy callback functions to video_context_data
so that conditionals aren't necessary
2017-05-18 03:37:02 +02:00
twinaphex 941a5d4f94 Go through function callback for swap_buffers as well 2017-05-18 03:05:07 +02:00
twinaphex 86ee08b7a7 Add video context driver update window title callback
to video_frame_info_t
2017-05-18 02:53:12 +02:00
twinaphex acbf11931b Move code 2017-05-16 22:46:56 +02:00
twinaphex 717709ef9e (wgl_ctx.cpp) Cleanups 2017-05-16 22:46:09 +02:00
twinaphex f24a73351c Only use wglGetProcAddress for OpenGL 2017-05-16 22:40:47 +02:00
twinaphex 4df6151e14 video_driver_init_filter - cleanup 2017-05-16 21:36:33 +02:00
twinaphex 126a5bf121 Use string_is_equal_fast/string_is_not_equal_fast 2017-05-16 04:00:37 +02:00
Twinaphex 2becbaf4e2 Merge pull request #4917 from aliaspider/master
Vulkan: font driver updates.
2017-05-15 11:24:42 +02:00
aliaspider b503407abb Vulkan: font driver updates.
- submit font texture staging_to_dynamic copy with a seperate command
buffer. fixes a validation issue caused by using vkCmdCopyImage during a
render pass.
- limit copies to updated glyphs.
2017-05-15 05:52:38 +01:00
aliaspider 36137d22e5 Vulkan: use the command buffer provided as parameter in
vulkan_copy_staging_to_dynamic.
2017-05-15 05:35:17 +01:00
twinaphex bf3188eac4 Combine runloop_ctl and rarch_ctl 2017-05-15 05:06:23 +02:00
aliaspider 1122a7c585 Vulkan: Add unicode support. 2017-05-15 00:37:50 +01:00
twinaphex 80d9d1f143 Rewrite task_queue 2017-05-14 20:43:48 +02:00
twinaphex 0e34d362d3 Fix video_driver_is_focused - keyboard should work again with
threaded video
2017-05-14 18:52:36 +02:00
twinaphex 581333f222 Get rid of implicit memset 2017-05-13 23:24:27 +02:00
twinaphex b22d7902f1 Turn macro back into function 2017-05-13 19:37:16 +02:00
twinaphex 17a15273ba Create function out of video_driver_is_focused - no longer
call video_driver_context_focus from video driver
2017-05-13 19:19:49 +02:00
twinaphex d4756f83e5 Stop calling video_driver_context_has_windowed from within video
drivers
2017-05-13 19:11:32 +02:00
twinaphex f6c8aba119 Move video_context_driver_update_window_title to video_driver_frame 2017-05-13 18:58:13 +02:00
Francisco José García García 5fc7a6776b (VITA) Fix problem with font renderer 2017-05-13 14:17:55 +02:00
aliaspider 66c8778878 'es' is required after #version 300. 2017-05-12 01:29:02 +01:00
twinaphex 42ebe7a7ad Merge runloop.c and retroarch.c 2017-05-11 09:11:46 +02:00
aliaspider 1223309052 better handling of existing #version directive in glsl shaders. 2017-05-11 05:14:11 +01:00
twinaphex 57089dc108 Update gl_common.c - update CHANGES.md 2017-05-11 02:56:11 +02:00
twinaphex e0c0815f42 (shader_vulkan.cpp) cleanups - don't use memset 2017-05-10 06:40:21 +02:00
twinaphex 1b302d6e40 (shader_vulkan.cpp) Cleanups 2017-05-10 06:31:06 +02:00
twinaphex 865ec1eb71 Cleanup 2017-05-10 06:23:53 +02:00
hunterk 7f8d4479f4 fix version directives in GLSL shaders, courtesy of aliaspider 2017-05-09 23:20:00 -05:00
twinaphex 9dff2434ef Fix some structurally dead code warnings 2017-05-09 20:54:03 +02:00
twinaphex d75f155eb6 Reorder video_driver.h 2017-05-09 01:37:12 +02:00
twinaphex f928e57064 Combine video_context_driver.c and video_driver.c 2017-05-09 01:25:59 +02:00
twinaphex bac9973354 Cleanups 2017-05-09 00:58:01 +02:00
twinaphex ed86a2ed10 Add threading error notes 2017-05-06 17:35:12 +02:00
Andrew 858e15b837 Fix performance issue with max_swapchain_images
This fixes a performance problem introduced in my last commit when
max_swapchain_images == 3.

In my last commit I incorrectly stated the 3rd buffer was not being
used, after doing some additional testing I realized I was mistaken,
it can indeed be used due to the used page tracking.

Reverting that portion of my previous commit.
2017-05-05 16:58:17 -07:00
Twinaphex 6e51153387 Revert "Cleanu gl_raster_font_render_line"
This reverts commit 45cf53b487.
2017-05-05 05:30:49 +02:00
twinaphex 45cf53b487 Cleanu gl_raster_font_render_line 2017-05-05 05:23:26 +02:00
Andrew 01e25bd5c7 Fix max_swapchain_images and do some additional cleanup
When max_swapchain_images was originally added it worked properly,
but was subsequently broken by using the value to specify the number
of buffers allocated.

Due to how the dispmanx driver works, only 2 buffers are ever actually
used, so the 3rd buffer in the "swapchain" ended up doing nothing.

Fix this by restoring it to the original intent, that is, if
max_swapchain_images <= 2 wait for vsync after the flip (reducing
lag), otherwise wait at the last possible moment (increasing lag).

Additionally, fix up some unnecessary void* usage where type safety
could be maintained.
2017-05-04 18:45:59 -07:00
Andrew a1d094e64e Minor race fix and small cleanup to dispmanx_gfx
It's unlikely it was causing issues, but another race existed in the
dispmanx driver, it incremented the pending page count after sending the
update request.

If a context switch happened between sending the update and incrementing
the page count, the vsync callback would decrement it from 0 and cause
the uint to overflow.

Throw in a minor C89 fix and some whitespace fixups too.
2017-04-29 17:09:07 -07:00
twinaphex 46bae549ac Fix some coverity warnings 2017-04-29 19:22:44 +02:00
twinaphex 17827940fd Get rid of some if conditionals 2017-04-29 19:21:24 +02:00
twinaphex 4d419b2b56 (sdl_gfx.c) Update 2017-04-29 18:47:29 +02:00
twinaphex 60242e161a Buildfix 2017-04-29 18:45:58 +02:00
twinaphex c147604103 Update 2017-04-29 18:33:50 +02:00
twinaphex 7bdef1fde4 Buildfixes 2017-04-29 18:30:23 +02:00
twinaphex dd83b4a043 (Vita) Buildfix 2017-04-29 17:52:16 +02:00
twinaphex b5e97238ac Optimize video_driver_threaded_{lock|unlock} 2017-04-29 17:38:47 +02:00
twinaphex d86f466fe9 Turn video_driver_is_threaded into macro 2017-04-29 17:33:36 +02:00
twinaphex 03145a0424 Pass video_is_threaded variable to video_driver_init 2017-04-29 17:10:59 +02:00
twinaphex 11a96df465 Rewrite font_driver_free 2017-04-29 17:02:35 +02:00
twinaphex e84adb504f Don't try to call video_driver_is_threaded from outside
gfx/video_driver.c - only exception right now - menu_display.c
2017-04-29 16:52:52 +02:00
twinaphex 63504cd9c8 No longer need to grab threaded variable from settings struct 2017-04-29 16:37:49 +02:00
twinaphex 91abbdd4f1 video_viewport_get_custom will never be NULL 2017-04-29 16:22:07 +02:00
twinaphex c8bf28842f Get rid of some calls to video_driver_viewport_get_custom 2017-04-29 16:11:31 +02:00
twinaphex 2322e77795 Add to video_frame_info 2017-04-29 16:07:02 +02:00
twinaphex 79c7627651 Move video_viewport_custom to gfx/video_driver.c 2017-04-29 13:10:01 +02:00
twinaphex 6930262ec2 Update/buildfixes 2017-04-29 12:44:45 +02:00
Francisco José García García afe173c883 [VITA] Really fix build 2017-04-29 12:02:26 +02:00
Twinaphex ccd4bdbd60 Merge pull request #4862 from andrewlxer/master
Fix dispmanx triple buffering race and re-enable triple buffering
2017-04-29 11:16:51 +02:00
Francisco José García García f7c56ddda3 [VITA] Fix build 2017-04-29 09:06:49 +02:00
Andrew 301a094ef9 Avoid potential dispmanx_gfx driver lockup
The dispmanx driver had a small race wherein if the vsync completed
between checking for a free page and waiting on the condvar, it would
hang forever waiting for a condition that would never fire.

I'm hoping this is what was causing the triple buffering lockups. In
my testing with it re-enabled and this fix, things are stable (and
much more performant than with triple buffering disabled).
2017-04-28 20:24:36 -07:00
Andrew 253c8cd997 Revert "DISPMANX: Disable triple buffering for now, for stability reasons."
This reverts commit 0b75671c21.
2017-04-28 20:20:43 -07:00
twinaphex 552845a94d Buildfixes 2017-04-29 02:39:32 +02:00
twinaphex 6d8789f4c1 (GX) Buildfix 2017-04-29 02:03:17 +02:00
twinaphex e6ab06a701 Move path variables 2017-04-29 00:39:29 +02:00
twinaphex f0c2d786ae Update arrays struct 2017-04-28 22:59:13 +02:00
twinaphex 87106b03c1 (3DS) Buildfix 2017-04-28 22:14:34 +02:00
twinaphex 05e4ec733e Move uint variables 2017-04-28 21:03:04 +02:00
twinaphex 324227d239 (Win32) Buildfix 2017-04-28 15:59:42 +02:00
twinaphex 4ef0809931 (GX) Another buildfix 2017-04-28 15:29:54 +02:00
twinaphex d1b6a865c4 Buildfixes 2017-04-28 15:29:20 +02:00
twinaphex 684e83ef30 Updates 2017-04-28 15:19:39 +02:00
twinaphex df31ba6255 (Win32) Buildfix 2017-04-28 15:05:12 +02:00
twinaphex 0da40fb3aa Move all float settings 2017-04-28 14:57:55 +02:00
twinaphex 3ad821c102 (Win32) Buildfix 2017-04-28 14:28:40 +02:00
twinaphex ed53be7c81 Move all bool settings 2017-04-28 14:11:34 +02:00
twinaphex b792c5deae move bool setting 2017-04-28 12:26:01 +02:00
twinaphex 9e7ac432c3 Try to prevent null pointer dereference 2017-04-28 12:07:11 +02:00
twinaphex 9812dfb4d4 Add conditionals 2017-04-28 12:05:17 +02:00
twinaphex cc095e56fc Start refactoring bool variables 2017-04-28 00:53:20 +02:00
twinaphex 301ee64e80 Add HAVE_XINERAMA ifdefs 2017-04-26 15:29:21 +02:00
twinaphex fc5d240297 Get rid of some now-unused functions 2017-04-25 23:30:50 +02:00
twinaphex d66aff8fbd Start wrapping settings->input.binds 2017-04-25 18:12:13 +02:00
twinaphex 6ace8ce66a Rewrite autoconf_binds and move it to task_autodetect.c - take
it out of the settings struct
2017-04-25 16:33:30 +02:00
twinaphex 15a8f0c485 Wrap some more settings manipulation 2017-04-25 15:31:32 +02:00
twinaphex 632039f985 Cleanups 2017-04-25 13:28:42 +02:00
twinaphex b6d34e9581 Cleanups 2017-04-25 13:27:40 +02:00
twinaphex ffcb9d4a16 (gl_raster_font.c) Cleanups 2017-04-25 13:25:37 +02:00
twinaphex 03358b2ecd (gl_raster_font) Cleanup 2017-04-25 13:22:55 +02:00
twinaphex 047b10a3de (vulkan_raster_font.c) Small refactors 2017-04-25 13:19:32 +02:00
twinaphex 3917c658f3 Refactor vulkan_raster_font_render_line 2017-04-25 13:16:00 +02:00
twinaphex ee484b693c (vulkan_raster_font.c) Cleanups 2017-04-24 17:39:23 +02:00
twinaphex 765e636214 (Vulkan) Cleanups 2017-04-24 17:21:29 +02:00
twinaphex 2a13af52fc Revert "video_init function - video_info_t should not be const -"
This reverts commit c8bcbad4a7.
2017-04-24 12:25:14 +02:00
twinaphex e5b38315fe Revert "Add real_width and real_height to video_info struct - let"
This reverts commit 831ea1a507.
2017-04-24 12:25:07 +02:00
twinaphex 023599366c Revert "Cleanups"
This reverts commit 0021970c16.
2017-04-24 12:25:00 +02:00
twinaphex 8a215ce30e Revert "Cut down on another video_driver_set_size call"
This reverts commit b951c84e01.
2017-04-24 12:24:55 +02:00
twinaphex b951c84e01 Cut down on another video_driver_set_size call 2017-04-24 12:23:09 +02:00
twinaphex 0021970c16 Cleanups 2017-04-24 12:19:47 +02:00
twinaphex 831ea1a507 Add real_width and real_height to video_info struct - let
the drivers set this depending on the video width/height they
get back from the video context driver
2017-04-24 12:18:28 +02:00
twinaphex c8bcbad4a7 video_init function - video_info_t should not be const -
try to set video_driver_width/video_driver_height outside
of video driver init function
2017-04-24 12:03:21 +02:00
twinaphex 5a3b78bad3 Get rid of more performance counters 2017-04-24 11:24:16 +02:00
twinaphex d06c963a19 Get rid of PERF_ENABLE blocks 2017-04-24 11:20:30 +02:00
twinaphex e411e7c284 Add separate PI macro 2017-04-24 10:31:25 +02:00
twinaphex 365c7f9c8b (Video drivers) Cleanups 2017-04-24 10:08:32 +02:00
twinaphex 8efa2b146e Add this to d3d_alive 2017-04-24 09:44:15 +02:00
twinaphex 34852e159a Cut down on amount of times video_driver_build_info is called 2017-04-23 22:20:11 +02:00
twinaphex 0e3bc69f8c Simplify video shader driver function 2017-04-23 21:53:03 +02:00
twinaphex 087002d9c5 Get rid of unused video_driver_get_frame_count - locking/unlocking
around this variable should no longer be necessary
2017-04-23 21:39:49 +02:00
twinaphex 2dfe441381 Get rid of video_info->frame_count 2017-04-23 19:21:12 +02:00
twinaphex bf7616cf0e Revert "Move structs to gfx/video_thread_wrapper.h"
This reverts commit 12d0073d50.
2017-04-23 19:17:52 +02:00
twinaphex 12d0073d50 Move structs to gfx/video_thread_wrapper.h 2017-04-23 18:28:44 +02:00
twinaphex 7c6b93f58f More cleanups 2017-04-23 17:44:24 +02:00
twinaphex 3ec5816259 Rewrite RUNLOOP_CTL_SYSTEM_INFO_GET 2017-04-23 16:41:26 +02:00
twinaphex aea00f1e00 Use memcmp instead of string_is_equal for more instances 2017-04-23 12:17:51 +02:00
twinaphex 953045f0d2 Update logs 2017-04-23 11:56:46 +02:00
twinaphex 0f2a6f3dd2 Don't use performance counters in GL/Vulkan/video thread wrapper
unless PERF_ENABLE is defined
2017-04-23 11:31:11 +02:00
twinaphex caafee006c Get rid of performance counter for softfilter 2017-04-23 11:26:10 +02:00
twinaphex a88284897b (D3D) Use C-style allocation for d3d->menu 2017-04-23 09:38:44 +02:00
twinaphex f12ea0e1e3 Fix C89_BUILD 2017-04-22 09:37:36 +02:00
twinaphex aa2c29ac8b (exynos_gfx.c) Use memcmp 2017-04-22 09:34:30 +02:00
twinaphex 6ebd4e139e Rewrite more string_is_equal call invocations as memcmp 2017-04-22 08:51:16 +02:00
twinaphex d77da6b53d Fix bug in shader_glsl.c 2017-04-21 23:10:55 +02:00
twinaphex 284e6b2994 Replace more instances of string_is_equal 2017-04-21 22:51:04 +02:00
twinaphex f9bc2d3783 Use memcmp instead of string_is_equal where possible for
better performance
2017-04-21 22:47:15 +02:00
twinaphex e9e1db2945 Cleanups 2017-04-21 21:18:28 +02:00
twinaphex bcce88e516 (D3D) Cleanup d3dx9anim.h header 2017-04-21 21:00:22 +02:00
twinaphex 82c62b1693 Use stdstring in more instances 2017-04-21 13:50:24 +02:00
twinaphex 637b26772c Directly initialize some variables 2017-04-20 09:46:03 +02:00
twinaphex 96a9730a08 Cleanups 2017-04-20 09:15:56 +02:00
twinaphex d1ff5dd973 Header include cleanups 2017-04-20 09:14:20 +02:00
twinaphex 4df1ba690d (D3D) Header cleanups 2017-04-19 19:11:58 +02:00
twinaphex d220ce5870 Update D3D9 2017-04-19 18:58:01 +02:00
Twinaphex 8eed4c38cf Merge pull request #4833 from kbrenneman/platform-enums
Define the platform enums if they aren't in eglext.h.
2017-04-19 16:13:07 +02:00
twinaphex 87c5b03bed Get rid of another pragma warning 2017-04-19 16:11:35 +02:00
twinaphex d4ecc6398d (d3d9_cg_renderchain.cpp) Fix header includes 2017-04-19 16:11:00 +02:00
twinaphex 0b3e90dbf4 Header cleanups D3D9 2017-04-19 16:10:11 +02:00
Kyle Brenneman a4d19e174a Define the platform enums if they aren't in eglext.h.
Add #defines for EGL_PLATFORM_X11_KHR, EGL_PLATFORM_WAYLAND_KHR, and
EGL_PLATFORM_GBM_KHR, if they aren't already defiend in eglext.h.
2017-04-19 07:08:05 -06:00
twinaphex 27a6d68af9 Get rid of this pragma 2017-04-19 12:56:25 +02:00
twinaphex d5d04babdd Cleanups 2017-04-19 12:55:41 +02:00
twinaphex 9ca27adb59 Simplify D3D9 headers 2017-04-19 12:46:07 +02:00
twinaphex ca6eee21d9 Add header include for null_renderchain.c 2017-04-19 12:37:54 +02:00
twinaphex 0a33e6e8e4 Fix relative path header includes 2017-04-19 02:17:34 +02:00
twinaphex b15cca82c7 Fix some relative path header includes 2017-04-19 02:15:47 +02:00
twinaphex 841adf04a5 Add header include 2017-04-19 02:14:51 +02:00
twinaphex 5bfc513af4 Buildfixes 2017-04-19 02:03:01 +02:00
twinaphex 00a59629aa Silence some more warnings 2017-04-19 01:57:00 +02:00
twinaphex 7790fc3647 MOve renderchain files to dir 2017-04-19 01:51:05 +02:00
twinaphex 32c91baca6 Move read_viewport and viewport_info to render_chain_gl_legacy.c 2017-04-19 01:25:34 +02:00
twinaphex 7104d329fd Update logs 2017-04-18 06:02:43 +02:00
Kyle Brenneman 7baa75bee0 Add #ifdefs for trying to use eglGetPlatformDisplay.
Add #ifdefs for EGL_VERSION_1_5 and EGL_EXT_platform_base around the calls to
eglGetPlatformDisplay and eglGetPlatformDisplayEXT, respectively.

This avoids compiler errors when the EGL header files don't have the necessary
declarations for EGL 1.5 or EGL_EXT_platform_base.

Follow-up fix for https://github.com/libretro/RetroArch/issues/4790
2017-04-16 17:11:27 -06:00
twinaphex d433d592e1 Do this workaround for now - for Android/Emscripten 2017-04-17 00:26:20 +02:00
twinaphex 96d984b04d (egl_common.c) Cleanups/style nits 2017-04-17 00:04:08 +02:00
Kyle Brenneman fcccc9dc0b Use eglGetPlatformDisplay when it's available.
Added a platform parameter to egl_init_context. If the caller provides a
platform other than EGL_NONE, then it will try to use eglGetPlatformDisplay or
eglGetPlatformDisplayEXT instead of eglGetDisplay.

If neither eglGetPlatformDisplay or eglGetPlatformDisplayEXT is supported, then
it will still fall back to calling eglGetDisplay.

Updated the Wayland, X11, and DRM callers to use the correct platform enum.
Those are the callers that don't just pass EGL_DEFAULT_DISPLAY as the native
display handle.

Calling eglGetDisplay with any value other than EGL_DEFAULT_DISPLAY is
inherently unreliable, because it requires the EGL implementation to guess a
platform type based on a (void *) pointer. Some implementations might not
identify a particular platform, or worse, might guess wrong.

Fixes https://github.com/libretro/RetroArch/issues/4790
2017-04-16 14:19:40 -06:00
twinaphex 0c5a87b1d7 Create scaler_ctx_scale_direct 2017-04-16 11:03:29 +02:00
twinaphex 257410d058 Turn matrix_4x4_multiply into macro 2017-04-16 07:55:02 +02:00
twinaphex 32cebbbcba Turn more matrix_4x4 functions into macros 2017-04-16 04:00:20 +02:00
twinaphex fbd6d0ebc6 Turn more matrix 4x4 functions into macros 2017-04-16 03:53:07 +02:00
twinaphex 809bce6cd9 Start turning most matrix 4x4 functions into macros 2017-04-16 03:45:07 +02:00
twinaphex b591d63e8b Silence unused variable warning 2017-04-15 20:20:47 +02:00
twinaphex 4b419ce125 (iOS) Fix 'release is unavailable; not available in automatic reference
counting mode'
2017-04-15 20:20:08 +02:00
twinaphex 7f4b490fdb Prevent implicit memsets with struct video_viewport 2017-04-15 19:43:52 +02:00
twinaphex e3fce81097 Use BRIDGE macro 2017-04-15 19:28:10 +02:00
twinaphex 1d97a81224 Optimize get_backing_scale_factor - store result of backing scale
factor query and use it for later function call invocations
2017-04-15 19:27:33 +02:00
Twinaphex 2324399fa8 Buildfix 2017-04-15 19:21:10 +02:00
twinaphex e97682d4ca Simplify cocoa_gl_ctx.m 2017-04-15 19:20:42 +02:00
Twinaphex 80017f7d71 (OSX) Try to free allocation at the end of get_selector 2017-04-15 19:13:21 +02:00
twinaphex f9b75e7d76 CXX_BUILD buildfix 2017-04-14 03:40:58 +02:00
aliaspider c04573233c add missing extern "C" guard. 2017-04-11 18:54:26 +01:00
Jools Wills b587018c56 hardcode struct for compatibility between various mali EGL headers
Old kronos headers used mali_native_window, ARM's headers used fbdev_window, and
latest mali-fbdev package on the odroid with newer khronos headers, the struct seems missing
2017-04-07 18:55:33 +01:00
twinaphex 3da08c9d9e Cleanup egl_create_context 2017-03-30 02:39:08 +02:00
twinaphex 38f9b93885 Refine egl_init_context - DRM EGL contexts still fails
at eglGetDisplay
2017-03-30 02:31:51 +02:00
twinaphex 55a0b7d1a9 Create default_ortho static variable 2017-03-25 10:22:57 +01:00
twinaphex 7d79e367f9 (GL) Prevent implicit memset; some other general cleanups 2017-03-25 10:18:24 +01:00
twinaphex d77c209c85 Cleanups 2017-03-25 10:13:18 +01:00
twinaphex b97c8a183d Update log 2017-03-24 01:38:23 +01:00
twinaphex a72cdb77ad Update logs 2017-03-24 01:33:22 +01:00
twinaphex 396857db9a Update logs 2017-03-24 01:28:58 +01:00
twinaphex 755ceda4f9 More consistent log messages 2017-03-24 00:30:14 +01:00
twinaphex 1b27c3dec1 Make some log messages more consistent 2017-03-24 00:28:21 +01:00
twinaphex 7579d68272 Cleanups 2017-03-24 00:15:17 +01:00
twinaphex 62aa0c4415 Split up dbus functions into separate file 2017-03-24 00:12:21 +01:00
twinaphex 22672af217 Update logs 2017-03-23 23:59:08 +01:00
twinaphex 17235d70e2 Create set_coords_fallback for shader driver 2017-03-23 21:49:29 +01:00
twinaphex 571f899c3d Don't include these headers 2017-03-23 20:09:24 +01:00
twinaphex 805470072b Make desktop_mode a static variable inside x11_common.c 2017-03-23 20:07:56 +01:00
twinaphex 1ce3b12335 Split up xinerama functions into separate files 2017-03-23 19:59:11 +01:00
twinaphex 09e7186a4e Start splitting up xinerama functions 2017-03-23 19:46:06 +01:00
twinaphex 4c0ce28e6e (x11_common.c) Cleanups 2017-03-23 19:36:39 +01:00
Brad Parker 151feee826 add null pointer check, fixes startup crash with null video driver 2017-03-19 19:25:19 -04:00
twinaphex 17739435de Cleanups 2017-03-07 12:59:58 +01:00
twinaphex 4118d0bbd2 Cleanups 2017-03-07 12:49:52 +01:00
twinaphex f4ac760178 Cleanups 2017-03-07 12:37:11 +01:00
twinaphex cb1c8df547 Simplify gl_glsl_set_coords 2017-03-07 12:35:29 +01:00
twinaphex 2be88a44ed (XMB) Fix 2017-02-28 04:50:07 +01:00
Twinaphex 43c32aad3d Silence more warnings 2017-02-26 22:16:03 +01:00
Twinaphex 216e7bcdaf Silence more warnings on iOS 2017-02-26 21:46:19 +01:00
Twinaphex b7b3b2cb5f Try to prevent truckload of warnings on iOS 2017-02-26 10:33:03 +01:00
twinaphex c215fef8dd Updates 2017-02-21 18:58:03 +01:00
twinaphex 873a07030f (Win32) Buildfix 2017-02-21 17:33:51 +01:00
twinaphex d3e8e66b9f Create task_push_load_content_with_current_core_from_companion_ui 2017-02-21 17:29:30 +01:00
twinaphex d74f1a56f3 Create load_content_with_new_core_from_companion_ui 2017-02-21 16:30:47 +01:00
hunterk a1124b8ded (Vulkan) add bokeh menu shader for vulkan 2017-02-20 22:59:05 -06:00
Jean-André Santoni b700a4e77b (CoreText) Fix loading fonts from a path 2017-02-20 23:11:40 +01:00
twinaphex 4fb3315091 Change to 6 * 2 2017-02-20 21:52:49 +01:00
twinaphex 0d873b6da1 (Vulkan) Add fancy snow for Vulkan 2017-02-20 21:51:58 +01:00
twinaphex 962149ef63 (Vulkan) Add pipeline_snow 2017-02-20 21:25:40 +01:00
Hans-Kristian Arntzen 2d88530c98 Vulkan: Simple snow pipeline works.
Some other fixes too.
2017-02-20 20:53:59 +01:00
twinaphex 3cfaf47637 Avoid 'variable may be used uninitialized in this function' warnings 2017-02-19 18:59:02 +01:00
aliaspider 0d945a81d7 stb_unicode: use the same unicode handling code as the freetype
renderer, which supports codepoints > 0xFFFF.
2017-02-19 14:40:05 +01:00
aliaspider 461d6ed3e0 (WiiU) use the TV resolution instead of the gamepad resolution for
viewport settings. fixes #4655
2017-02-17 15:06:48 +01:00
twinaphex 5d8c191df7 Cleanup 2017-02-16 01:30:50 +01:00
Hans-Kristian Arntzen 6395907887 Vulkan: Find supported composite alpha in swapchain. 2017-02-13 16:30:02 +01:00
vanfanel 0b75671c21 DISPMANX: Disable triple buffering for now, for stability reasons. 2017-02-12 19:27:59 +01:00
Nicolas Adenis-Lamarre 9993435cf9 sdl2 renderer: remove the random flashing black borders
on the batocera linux distribution (https://github.com/nadenislamarre/batocera.linux),
retroarch gives some flashing black borders sometimes when running a game.
It looks like sometimes the rendering is done without clearing the screen causing
this flashing effect.

Signed-off-by: Nicolas Adenis-Lamarre <nicolas.adenis.lamarre@gmail.com>
2017-02-08 22:31:26 +01:00
Brad Parker 373535f329 DOS: improve color accuracy and scaling, thanks to aliaspider 2017-02-08 00:17:12 -05:00
Brad Parker 0bdcdac2da DOS: scale menu frame to fit screen 2017-02-05 15:23:38 -05:00
twinaphex 0383d20465 Revert "Revert "Merge lakka patch for DRM""
This reverts commit 4e0ed3d3d6.
2017-02-05 11:06:51 +01:00
twinaphex 4e0ed3d3d6 Revert "Merge lakka patch for DRM"
This reverts commit 207ebe5e59.
2017-02-05 11:05:55 +01:00
twinaphex a06380e9ca Fix ./configure --enable-python 2017-02-04 09:01:02 +01:00
Brad Parker 118308fbff fix threaded menu parameters 2017-02-01 01:08:06 -05:00
Brad Parker 3dfe93b13f DOS: swap red/blue in rgui menu frame 2017-01-31 18:10:27 -05:00
Brad Parker 2661d5556b DOS: fix image scaling and colors for 16-bit core video 2017-01-30 13:51:41 -05:00
Brad Parker 343ac9fea7 DOS: scale 16-bit core video to fit screen 2017-01-29 00:48:22 -05:00
twinaphex 207ebe5e59 Merge lakka patch for DRM 2017-01-29 03:55:32 +01:00
twinaphex bdaf00032e Add comments 2017-01-26 02:49:42 +01:00
twinaphex 0d3703bc13 (Vita) Buildfix 2017-01-25 18:39:55 +01:00
twinaphex 0a7538f1b8 Create menu_display_get_fb_size 2017-01-25 18:32:16 +01:00
twinaphex 374fd57270 Remove the few performance counters that depend on runloop_ctl 2017-01-25 18:15:58 +01:00
twinaphex cdfc89b975 use perfcounter plus functions for video_thread_wrapper too 2017-01-25 17:13:29 +01:00
twinaphex a9164b7124 Try to use performance counter plus functions in most cases 2017-01-25 17:12:43 +01:00
twinaphex 41349621cf Add extra param to runloop_get_status 2017-01-25 16:57:22 +01:00
twinaphex 6661c0fb94 Rewrite performance counter stop/start/init into macros 2017-01-25 16:53:06 +01:00
twinaphex 5ddcadcb2f video_monitor_get_fps only used from frame function, so get rid
of separate function
2017-01-25 16:33:44 +01:00
twinaphex c21fd538a9 Minor cleanups 2017-01-25 16:08:50 +01:00
twinaphex 41a647945b Create video_driver_get_record_status 2017-01-25 15:30:51 +01:00
twinaphex 4b01726f48 (video driver) Minor cleanups 2017-01-25 15:22:12 +01:00
twinaphex affb259409 Pass video_driver_is_threaded return value to font driver init/free
functions
2017-01-25 14:47:24 +01:00
twinaphex 631ee03df4 Expand video_driver_get_status 2017-01-25 04:42:19 +01:00
twinaphex a151c24117 Create video_driver_get_status 2017-01-25 04:39:21 +01:00
twinaphex 3a4963b474 (vita2d_gfx.c) Cleanups 2017-01-24 14:08:28 +01:00
twinaphex 19d2649c61 Update psp1_gfx.c 2017-01-24 14:04:12 +01:00
twinaphex 93812f58ba We don't need the settings variable here 2017-01-24 14:02:09 +01:00
vanfanel ae3cdaccb9 DISPMANX: Add missing include and remove redundant one. 2017-01-24 13:58:55 +01:00
Twinaphex 7aaf193810 Merge pull request #4492 from aliaspider/master
(Wii) another fix devkitpro r29.
2017-01-24 01:26:06 +01:00
aliaspider 3a6e49311f (Wii) use C version of guMtxConcat (ps_guMtxConcat broken in devkitpro
r29).
2017-01-24 01:23:18 +01:00
Brad Parker 7c41903ecb GDI: fix color rendering of RGUI menu 2017-01-23 14:50:31 -05:00
aliaspider 021b510452 (WiiU) refactors/cleanups. 2017-01-23 16:14:05 +01:00
twinaphex fb84259742 Refactor some functions 2017-01-23 15:24:33 +01:00
The Last Cabra 0e542037d8 Merge branch 'master' into master 2017-01-23 15:16:19 +01:00
twinaphex 68dc34d5a4 Move comment 2017-01-23 14:40:48 +01:00
twinaphex 34d3b88759 Cleanups 2017-01-23 14:19:32 +01:00
twinaphex b7ebcd6948 Simplify video_monitor_get_fps 2017-01-23 14:04:00 +01:00
twinaphex 9b1c0abf5e Create runloop_msg_queue_pull 2017-01-23 13:56:05 +01:00
twinaphex 81b529696f Cleanups 2017-01-23 02:33:46 +01:00
twinaphex f9239cc9c8 Update C++ comments to C comments 2017-01-23 01:38:35 +01:00
twinaphex e0a560f60a Turn C++ comments into C comments 2017-01-23 01:37:19 +01:00
twinaphex 6247d6ea1d Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
twinaphex 4ea31e99aa Remove some header includes 2017-01-23 00:39:20 +01:00
twinaphex 0d5b3b9273 Create menu_driver_is_alive 2017-01-23 00:37:52 +01:00
twinaphex a104c73738 Go back to this 2017-01-22 23:19:35 +01:00
twinaphex d3707fe3b0 See if this works 2017-01-22 22:28:24 +01:00
twinaphex 7d624fdedb Push some build fixes when compiling with --disable-opengl --disable-shaderpipeline 2017-01-22 22:18:00 +01:00
twinaphex 8698525f86 Only show the frame when libretro_running is true 2017-01-22 21:42:42 +01:00
Brad Parker 5c77937dad caca: don't leave X coord uninitialized with unknown font alignment 2017-01-22 13:51:10 -05:00
twinaphex 1ea3bea0ee Don't pass video_info by value to context_driver init function 2017-01-22 18:29:22 +01:00
twinaphex 2f504b4057 (gfx/drivers) Get rid of remaining runloop.h / runloop_ctl
references inside gfx/drivers
2017-01-22 18:17:48 +01:00
twinaphex d4b7edff4a Cut down on menu_driver_ctl usage from within video drivers 2017-01-22 17:30:32 +01:00
Brad Parker 47ffe94479 DOS: add vga_common header 2017-01-22 10:47:11 -05:00
Brad Parker 9d3c20929a DOS: vga palette looks ok now 2017-01-22 10:47:11 -05:00
Brad Parker 5c83e993ba DOS: use custom VGA color palette, rgui looks nice but still is not green 2017-01-22 10:47:11 -05:00
Brad Parker 89fc14d165 DOS: horizontal scale test 2017-01-22 10:47:11 -05:00
Brad Parker c4bfa6b0d2 DOS: initial VGA int13 graphics driver 2017-01-22 10:47:11 -05:00
twinaphex a1594615f0 Create runloop_get_status 2017-01-22 16:22:20 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex 57f8c637bf Cut down on runloop_ctl calls inside gfx/drivers 2017-01-22 12:38:20 +01:00
twinaphex 23c35c39b5 Add more video_frame_info_t members 2017-01-22 02:04:58 +01:00
Brad Parker bc8b3ebad5 gdi: fix font alignment 2017-01-21 15:46:46 -05:00
Brad Parker 0290f4713c caca: fix font alignment 2017-01-21 15:39:35 -05:00
twinaphex b97b40af75 (vg.c) Buildfix 2017-01-21 18:54:13 +01:00
twinaphex c8141123d6 (GX) Cleanup warnings 2017-01-21 00:55:21 +01:00
twinaphex e6c4327a1c (GL) Fix lockup at startup 2017-01-20 21:05:55 +01:00
xhp-creations 577ee09727 (WIIU) fix rotation of menu
(WIIU) fix rotation of menu
2017-01-20 11:22:30 -05:00
xhp-creations a8232f1b46 (WIIU) add rotation support
(WIIU) add rotation support
2017-01-20 10:29:53 -05:00
twinaphex 927e4b6be0 Less settings pointer grabbing 2017-01-20 15:38:20 +01:00
twinaphex 0be6264796 Get rid of more settings pointer grabbing 2017-01-20 15:33:47 +01:00
vanfanel 7ae7e2eaee DISPMANX: now waiting for free pages after issuing flip, instead of before, to avoid input lag. 2017-01-20 14:59:14 +01:00
twinaphex 30c7754029 Buildfix 2017-01-20 14:37:02 +01:00
twinaphex 526072ccdf Cut down on menu_display_libretro_running usage 2017-01-20 14:25:00 +01:00
twinaphex 58a47e860a Add use_rgba member to video_frame_info_t 2017-01-20 14:04:50 +01:00
twinaphex 5b89c85237 Fix performance inefficiency (Coverity) 2017-01-19 23:12:18 +01:00
twinaphex bc5c2c13f8 Remove unused member 2017-01-19 23:09:50 +01:00
twinaphex 2f175f1a15 Remove video_driver_get_size call in gfx/drivers_font 2017-01-19 22:03:59 +01:00
twinaphex 219a07f709 (hlsl) Fix 2017-01-19 21:21:53 +01:00
twinaphex 28195ee517 (HLSL) Buildfixes 2017-01-19 21:20:05 +01:00
twinaphex 861ad8b3ab (XDK360) Another buildfix 2017-01-19 21:05:04 +01:00
twinaphex 0edbf8d5c9 (shader_hlslc.) Another buildfix 2017-01-19 20:56:07 +01:00
twinaphex 98f0422b20 (HLSL) Fix typo 2017-01-19 20:50:00 +01:00
twinaphex 0b8037d893 (360) Fix typo 2017-01-19 20:35:23 +01:00
twinaphex 23afaa8799 (Xbox 360) Buildfixes 2017-01-19 20:34:07 +01:00
twinaphex fd8cdc389f (Xbox 360) More buildfixes 2017-01-19 20:31:33 +01:00
Brad Parker 8a65650298 Windows buildfix 2017-01-19 13:46:04 -05:00
Brad Parker a54ea9ad88 show titlebar again for remaining drivers 2017-01-19 18:08:39 +00:00
Brad Parker c0e55cba37 window title fix for SDL 2017-01-19 17:51:22 +00:00
twinaphex 849315e844 Prevent some minor computations in video_monitor_get_fps 2017-01-19 18:07:01 +01:00
twinaphex 6c108a8d27 Shows titlebar text again with X11 2017-01-19 17:58:00 +01:00
twinaphex 7cce305c06 Add header for sdl_gfx.c 2017-01-19 17:48:03 +01:00
twinaphex fe84312340 Add some header includes 2017-01-19 17:20:42 +01:00
twinaphex 27ae782a8e (CTR) Add this header 2017-01-19 17:17:20 +01:00
twinaphex 0d33888a24 (dispmanx_gfx.c) Cleanups 2017-01-19 16:50:09 +01:00
twinaphex a42748f90f Get rid of more function invocations of video_driver_get_size 2017-01-19 16:40:20 +01:00
twinaphex 586654846a Buildfix 2017-01-19 16:33:02 +01:00
twinaphex e0ff0541a2 Pass video_info pointer to font drivers 2017-01-19 16:30:40 +01:00
twinaphex eea139ca30 Remove frame_count variable 2017-01-19 16:03:59 +01:00
twinaphex 028d50ca50 C89_BUILD fixes 2017-01-19 16:01:35 +01:00
Twinaphex 7961bf6d23 Merge pull request #4455 from libretro/refactor
Video driver changes
2017-01-19 15:59:23 +01:00
twinaphex 4a8cb5687a (ctr_font.c) use #if 0 blocks 2017-01-19 15:55:42 +01:00
twinaphex 9d1de5c974 Rewrite video_context_driver_set_resize 2017-01-19 14:31:57 +01:00
Brad Parker 009c1a45b7 forgot check for SDL1 2017-01-19 00:36:29 -05:00
Brad Parker b44c8c9995 store buffer for window title, only update actual title when it changes 2017-01-19 00:33:52 -05:00
twinaphex 7fbd3fcfb6 Simplify has_windowed 2017-01-19 02:50:56 +01:00
twinaphex 3761b5bdf6 Unroll video_driver_cached_frame_set 2017-01-19 02:34:35 +01:00
twinaphex 19cc817613 This needs to be set this way 2017-01-19 02:25:45 +01:00
twinaphex b96e0bb820 Remove stub update_title functions 2017-01-19 01:58:44 +01:00
twinaphex b6c0e57946 Silence some warnings 2017-01-19 01:39:11 +01:00
twinaphex 57f1c0c3b6 FIx threaded video 2017-01-19 01:24:21 +01:00
Twinaphex 78e06ca07f Cleanup variables 2017-01-19 00:11:29 +01:00
Twinaphex 99622cee14 (Cocoa ) Update 2017-01-19 00:10:42 +01:00
James Le Cuirot 7f77f0cef1
Fix osmesa_ctx missing includes 2017-01-18 22:50:52 +00:00
twinaphex 1a30cfea09 Remove more video_driver_get_size calls 2017-01-18 23:13:19 +01:00
twinaphex 55b8b8c244 Reduce amount of calls to video_driver_get_size 2017-01-18 23:07:05 +01:00
twinaphex c5445d2980 Reduce amount of times video_driver_get_size is called 2017-01-18 23:02:24 +01:00
twinaphex f4adbd04ae (gl.c) Reduce amount of time video_driver_get_size is called inside
gl_frame
2017-01-18 22:55:03 +01:00
twinaphex f3e700aa76 Add width/height members to video_frame_info 2017-01-18 22:30:16 +01:00
twinaphex 885f30b429 Merge branch 'refactor' of https://github.com/libretro/RetroArch into refactor 2017-01-18 22:25:26 +01:00
twinaphex 1981c4b83e Typo fix 2017-01-18 22:25:11 +01:00
Brad Parker c089a925b1 fix race condition when toggling menu with threaded_video on 2017-01-18 16:23:56 -05:00
twinaphex d010a852e4 Call menu_driver_frame once per video_frame call 2017-01-18 22:20:47 +01:00
twinaphex 34da27c36b Don't need 'frame_count' variable for check_window 2017-01-18 21:47:12 +01:00
twinaphex bf511b72e6 Create menu_driver_frame 2017-01-18 21:23:18 +01:00
Alcaro 31d93cc4b7 Fix #4449 2017-01-18 19:00:38 +01:00
twinaphex 6247e9900b Remove another header include 2017-01-18 17:46:08 +01:00
twinaphex 40cd1b70cd Remove runloop.h header includes 2017-01-18 17:43:23 +01:00
twinaphex e620b9b697 (OSX) Fix OSX 2017-01-18 17:42:11 +01:00
twinaphex a6a4808e94 Refactor frame monitor code 2017-01-18 17:41:27 +01:00
twinaphex f0820f6433 (DRM) Should fix segfault 2017-01-18 15:23:06 +01:00
Brad Parker fa5404fc53 fix race condition when switching fullscreen with threaded_video on 2017-01-17 19:09:25 -05:00
twinaphex e862abfe12 Initialize frame_count to 0 2017-01-18 00:54:36 +01:00
Brad Parker a220815b40 fix race condition in frame count with video_threaded on 2017-01-17 18:42:58 -05:00
twinaphex 4fbd41852a Revert "Don't manipulate buffer if we are fullscreen - no text writing"
This reverts commit 51976d496f.
2017-01-18 00:26:56 +01:00
twinaphex 552144c24d Revert "Make 'Show FPS" work again"
This reverts commit b433ccab09.
2017-01-18 00:25:55 +01:00
twinaphex b433ccab09 Make 'Show FPS" work again 2017-01-18 00:23:57 +01:00
twinaphex 51976d496f Don't manipulate buffer if we are fullscreen - no text writing
to display window then or internal buffer
2017-01-18 00:18:27 +01:00
twinaphex dbed4d4fc6 Add video_info->fullscreen 2017-01-17 23:54:24 +01:00
twinaphex 0354ced675 Style nits 2017-01-17 19:02:49 +01:00
twinaphex 4743230b09 Some header includes shouldn't be system includes 2017-01-17 18:15:11 +01:00
twinaphex 7931436f5b Apply xerpi diff 2017-01-17 18:12:23 +01:00
twinaphex 805c4c2d12 (android_ctx.c) Initialize these variables 2017-01-17 17:28:19 +01:00
twinaphex 4bae3032dd (X context) Fix CXX_BUILD and C89_BUILD 2017-01-17 14:51:24 +01:00
twinaphex 724b68d5cb (gdi_gfx.c) Style nits 2017-01-17 10:54:48 +01:00
Brad Parker 76b7235dc5 msvc2005 buildfix 2017-01-16 22:20:59 -05:00
Brad Parker 7dc558344b GDI: do not draw background with rgui 2017-01-16 21:11:47 -05:00
Brad Parker afb94e2b96 GDI: draw a gradient background for xmb 2017-01-16 20:41:09 -05:00
Brad Parker 5eaf00b39d GDI: fix rendering of 32-bit color cores 2017-01-16 20:41:09 -05:00
Brad Parker e4bdc5ce8b GDI: remove unused code and fix menu toggle in rgui and xmb 2017-01-16 20:41:09 -05:00
Brad Parker 240b43e0ba windows buildfix 2017-01-16 20:41:09 -05:00
Brad Parker e1f4db8081 Win2000 buildfixes 2017-01-16 20:41:08 -05:00
Brad Parker 7acfa39fb9 GDI: MSVC2010 build fix 2017-01-16 20:41:08 -05:00
Brad Parker 7c6bf6aaf7 fix msys2 compilation when opengl, vulkan and d3d9 are disabled 2017-01-16 20:41:08 -05:00
Brad Parker 8d9a43eec6 GDI: pitch seems to be reported wrong? this looks correct now 2017-01-16 20:41:07 -05:00
Brad Parker c09996cd22 GDI: don't need to store the padding 2017-01-16 20:41:07 -05:00
Brad Parker d6300a7946 GDI: video correctly fills the screen now, but resolution is poor. why is it scaled down by half? 2017-01-16 20:41:07 -05:00
Brad Parker 0ee3f39d76 GDI: no more flicker 2017-01-16 20:41:07 -05:00
Brad Parker f51472395a GDI: fix bad color due to reading as RGB555 instead of 565 2017-01-16 20:41:07 -05:00
Brad Parker 6b89064242 GDI: no more alternating black lines, but now video only takes up half the window 2017-01-16 20:41:07 -05:00
Brad Parker acd6826df9 GDI: stretch video output to fill window 2017-01-16 20:41:07 -05:00
Brad Parker 69bac11f02 GDI: fix window not clearing on every frame, requires both FillRect calls and InvalidateRect 2017-01-16 20:41:06 -05:00
Brad Parker 6c62901ae5 GDI: fix window not responding, but menu corruption still happens if set_gdi_pixel_format is called 2017-01-16 20:41:06 -05:00
Brad Parker bdc68e679f GDI: flip image and render text after other graphics 2017-01-16 20:41:06 -05:00
Brad Parker 6fe2a974a5 GDI: does not freeze after a few seconds anymore, but the window still freezes when moving the mouse into it 2017-01-16 20:41:06 -05:00
Brad Parker 8eba18a54f GDI: xmb draws for a few seconds and then freezes 2017-01-16 20:41:06 -05:00
Brad Parker 90ef57948c GDI testing 2017-01-16 20:41:06 -05:00
Brad Parker 177d811475 GDI driver partially visible with RGUI/game now, need to figure out why it isn't totally visible. Also need to stretch the frame, swap red/blue and flip vertically. 2017-01-16 20:41:05 -05:00
Brad Parker dd2778fb32 GDI text testing 2017-01-16 20:41:05 -05:00
Brad Parker 49d7be9813 MSVC GDI buildfix 2017-01-16 20:41:05 -05:00
Brad Parker 6df175bd31 GDI paint test 2017-01-16 20:41:05 -05:00
Brad Parker bc8f9f7f3f add SwapBuffers() for gdi 2017-01-16 20:41:05 -05:00
Brad Parker fb7c3f4c37 set pixel format for GDI driver 2017-01-16 20:41:05 -05:00
Brad Parker 33520fca6f set win32_hdc for gdi 2017-01-16 20:41:05 -05:00
Brad Parker a7a1f093c0 add GDI message loop 2017-01-16 20:41:04 -05:00
Brad Parker 2c6a24653c testing 2017-01-16 20:41:04 -05:00
Brad Parker e6d7116da0 create GDI window 2017-01-16 20:41:04 -05:00
Brad Parker 05c37bd39f initial GDI driver skeleton 2017-01-16 20:41:04 -05:00
Brad Parker c283c1eaf4 disable shader dialog until video_threaded issues are fixed 2017-01-16 19:26:28 -05:00
twinaphex 1c82287e10 (video_state_tracker.c) Don't need header include 2017-01-16 21:33:25 +01:00
twinaphex 9feb430b58 Don't pass video_info_t as pointer 2017-01-16 18:03:00 +01:00
bparker06 b5403da862 use name instead of joypad_name 2017-01-15 23:04:56 -05:00
twinaphex 666534cc74 Grab settings pointer only once inside wrapper 'input_driver' function 2017-01-16 00:14:10 +01:00
twinaphex 4a9ca66389 (WGL) Check if settings struct is non-NULL 2017-01-15 23:58:14 +01:00
Twinaphex 105fa863ec Merge pull request #4418 from vanfanel/master
DISPMANX: Put guard back in to avoid potential lockups!
2017-01-15 13:55:58 +01:00
vanfanel 5a1e8d55fb DISPMANX: Put guard back in to avoid potential lockups! 2017-01-15 13:47:30 +01:00
Twinaphex 35df333ac4 Merge pull request #4417 from vanfanel/master
DISPMANX: implement pitch alignment for better videocore blitting per…
2017-01-14 23:08:07 +01:00
vanfanel 869a050a18 DISPMANX: implement pitch alignment for better videocore blitting performance 2017-01-14 23:01:05 +01:00
twinaphex 69ebda74c4 FIx shader 2017-01-14 22:48:02 +01:00
radius 33863714ab speed this up a bit 2017-01-14 15:54:56 -05:00
twinaphex c875d95f7a Revert "Free font data inside gfx/font_driver.c's free function"
This reverts commit b3f1bbc15e.
2017-01-14 21:02:30 +01:00
vanfanel 8640522073 DISPMANX: remove commented line 2017-01-14 15:56:54 +01:00
vanfanel da640aaa28 DISPMANX: Honor swapchain setting properly 2017-01-14 15:54:20 +01:00
vanfanel f0c2826994 DISPMANX: Fix refreshrate calculation by updating menu surface asynchronously 2017-01-14 14:38:18 +01:00
twinaphex b3f1bbc15e Free font data inside gfx/font_driver.c's free function 2017-01-14 14:26:56 +01:00
twinaphex 08e9f64e43 Get rid of early return in video_driver_build_info 2017-01-14 14:00:39 +01:00
twinaphex 326e1e3fac Cleanup video_driver_frame 2017-01-14 13:55:49 +01:00
twinaphex 4230662572 (X context) Use better swap control method if GLX_OML_sync_control
and GLX_MESA_swap_control are supported
2017-01-14 12:24:56 +01:00
twinaphex a4523e0b2b Initialize variable 2017-01-13 18:17:36 +01:00
twinaphex 23017e0b45 Cleanups 2017-01-13 16:57:57 +01:00
twinaphex 1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex 8c9e0405fb Create video_driver_build_info 2017-01-13 16:09:32 +01:00
Matthew Wolff f6284721d8 Fix forgotten parameter of video_monitor_get_fps 2017-01-12 23:40:58 -06:00
twinaphex 24dc890b78 (gfx) Cleanups/style nit 2017-01-12 10:52:04 +01:00
twinaphex 1d59bc3452 (gfx) Style nits 2017-01-12 10:41:11 +01:00
twinaphex 0ee34b0076 (glslang_util.cpp) Cleanups/style nits 2017-01-12 10:32:57 +01:00
twinaphex 52ad8fb125 (gfx/drivers_font) Style nits 2017-01-12 10:26:12 +01:00
twinaphex 7d0056d422 Minimize dependence on settings struct from within context drivers 2017-01-11 06:44:41 +01:00
twinaphex 80f79130c0 Update set_video_mode context driver callback function 2017-01-11 06:35:50 +01:00
twinaphex 34d5f609f7 (x11_common.c) Cleanups 2017-01-10 21:54:48 +01:00
twinaphex a153d600e4 (font_renderer) Cleanups 2017-01-10 21:50:59 +01:00
twinaphex 20b5543420 (gl_raster_font.c) Cleanups 2017-01-10 21:43:45 +01:00
twinaphex d20bdabc20 Cleanup gl_raster_font_render_msg 2017-01-10 21:37:45 +01:00
twinaphex 6e696d8560 Rename g_osd_font to video_font_driver 2017-01-10 21:26:48 +01:00
twinaphex c1c35c5120 More platform build fixes 2017-01-10 21:15:52 +01:00
twinaphex f233745483 (SDL gfx) Buildfix 2017-01-10 21:01:13 +01:00
twinaphex 59a07d73b5 (PS3) Buildfix 2017-01-10 20:19:58 +01:00
twinaphex f1ef1a6a59 (GX) Buildfix 2017-01-10 20:18:49 +01:00
twinaphex db725155c1 (D3D) Another buildfix 2017-01-10 19:55:31 +01:00
twinaphex bc50f99e40 (WGL) Add header include 2017-01-10 19:51:06 +01:00
twinaphex a835149f69 (WGL) Buildfix 2017-01-10 19:48:19 +01:00
twinaphex 76ae7ac4a0 Cleanup some of the video drivers - add some members to
video_info_t to reduce the need for accessing the settings
struct
2017-01-10 18:16:22 +01:00
twinaphex 0b03e95d95 We no longer need the settings struct inside gl_init 2017-01-10 18:08:05 +01:00
twinaphex 8bd12368ef Pass joypad_driver name to input_driver_init function and make
sure we don't need to access the settings struct from the
input driver
2017-01-10 17:59:48 +01:00
twinaphex d48141041d Pass joypad_info to input_state function callback - less
settings pointer grabbing
2017-01-10 17:40:21 +01:00
twinaphex b9945f05f1 Pass joypad_info to input_joypad_analog 2017-01-10 03:53:57 +01:00
twinaphex 6376f2af68 Add rarch_joypad_info_t 2017-01-10 03:44:53 +01:00
Josh Palmer b85e2a8897 Fix references to bbctx-qnx post-rebase 2017-01-09 20:26:09 +00:00
Josh Palmer 5ed17c1ffd Reorganize QNX directory structure, rename bbqnx_ctx.c to qnx_ctx.c for consistency
Added OpenGL ES3 support to qnx_ctx.c
Finalize momentics project setup
2017-01-09 20:26:09 +00:00
Josh Palmer e1d3493a9d Handle more cases for EGL error reporting 2017-01-09 20:26:09 +00:00
Twinaphex 476c047f85 (OSX) Buildfix 2017-01-09 16:16:59 +01:00
twinaphex c086a18ceb video_driver_frame_filter no longer needs to grab pointer to
settings
2017-01-09 15:46:40 +01:00
twinaphex 36fb6776b2 Don't grab settings pointer in video_monitor_get_fps function 2017-01-09 15:42:14 +01:00
twinaphex 35fefb1c09 Do away with yet more pointer grabbing of settings 2017-01-09 15:14:16 +01:00
twinaphex 6b3cc9068d Pass video_info to swap_buffers too 2017-01-09 14:59:15 +01:00
twinaphex 3d92ce140e Pass video_frame_info_t to update_window_title 2017-01-09 14:42:07 +01:00
twinaphex be2f921ee2 Don't use settings pointer inside video_frame function 2017-01-09 14:25:59 +01:00
twinaphex a90cf337c7 C buildfix 2017-01-09 01:56:36 +01:00
twinaphex c87ef25133 CXX_BUILD fix 2017-01-09 01:54:15 +01:00
Twinaphex 6b2601eb91 Merge pull request #4384 from fr500/master
small optimization by @aliaspider
2017-01-09 00:39:10 +01:00
radius 86e8c409fe small optimization by @aliaspider 2017-01-08 18:36:06 -05:00
twinaphex 68d484bf60 Set supports_rgba before calling image_texture_load 2017-01-08 21:49:23 +01:00
twinaphex 9b6b055047 avoid some implicit memsets 2017-01-08 19:35:24 +01:00
radius f87f7d026d improve readability a bit 2017-01-07 22:47:55 -05:00
twinaphex c8bc6c7120 (XMB) Add Bokeh menu pipeline 2017-01-08 03:56:47 +01:00
twinaphex c57ab8f37a Add pipeline_bokeh to shader_glsl.c 2017-01-08 02:16:47 +01:00
twinaphex 09a83525a9 Add pipeline_bokeh.glsl.frag.h 2017-01-08 02:13:36 +01:00
Twinaphex faa8ddf413 Remove unused variables 2017-01-07 08:11:23 +01:00
vanfanel 7ba3ff9c12 DISPMANX: Fix hang when null frame is passed (TyrQuake core) 2017-01-05 23:47:33 +01:00
twinaphex bbcdc18801 Remove unused variables 2017-01-05 22:18:09 +01:00
Logan McNaughton 017d9cea9d This fixes the XMB menu for me
When using threaded video and shared context

Threaded video gets disabled for GL contexts, so you can't rely on the settings value
2017-01-05 12:53:55 -08:00
twinaphex c028f56016 Turn video_driver_is_threaded into a static function 2017-01-05 08:52:30 +01:00
twinaphex e75633064a Add 'Y button' callback function for input binds 2017-01-05 04:52:04 +01:00
twinaphex 7ec6dc0bde (x_ctx.c) Cleanup 2017-01-04 09:44:08 +01:00
twinaphex b13d069578 - Silence Coverity warning in platform_linux.c
- Don't do settings lookup when calling runloop_msg_queue_push
2017-01-03 18:47:34 +01:00
twinaphex b243fec095 Simplif gfx_ctx_drm_queue_flip 2017-01-01 06:06:44 +01:00
Logan McNaughton 35792721e5 Attempt to fix some issues with BGRA textures 2016-12-30 21:14:30 -07:00
Logan McNaughton 34ad1555f1 Use this code for GLES2 and GLES3 2016-12-30 13:56:54 -07:00
Logan McNaughton 8953bce122 Found a combination that doesn't work 2016-12-30 10:42:26 -07:00
Logan McNaughton f94e944723 Update gl_common.c 2016-12-30 10:30:21 -07:00
Logan McNaughton c0bdc67458 One more sized format 2016-12-30 10:29:26 -07:00
Logan McNaughton 90a1c76abb This wasn't working on Android 2016-12-30 10:22:12 -07:00
Twinaphex 2174ba5e27 Merge pull request #4321 from loganmc10/glupen
Use RGBA for internal format
2016-12-30 16:18:40 +01:00
twinaphex 9657bbd998 Get rid of set_rgba/unset_rgba inside image_texture.c 2016-12-29 23:22:40 +01:00
twinaphex 6a166faa0c Revert "Remove supports_rgba varaible from image_texture.c"
This reverts commit bd0c97fdc4.
2016-12-29 22:53:10 +01:00
twinaphex bd0c97fdc4 Remove supports_rgba varaible from image_texture.c 2016-12-29 22:39:52 +01:00
twinaphex f067ecce50 (video_driver.c) Cleanups 2016-12-27 14:48:04 +01:00
Logan McNaughton f45a75fa98 Use RGBA for internal format 2016-12-26 13:00:38 -07:00
hunterk 5ec5b199f6 less invasive revert for blue/red swap 2016-12-25 20:22:28 -06:00
twinaphex bb4888ae22 Be more careful with allocations 2016-12-25 01:52:40 +01:00
twinaphex 77e5cdbfde Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
This reverts commit ad7386913c.
2016-12-22 23:36:11 +01:00
twinaphex b07fd17258 Revert "Initialize message queue first"
This reverts commit b0c97e901f.
2016-12-22 23:34:21 +01:00
Brad Parker 42307a322a missing ../ 2016-12-22 11:25:49 -05:00
twinaphex b0c97e901f Initialize message queue first 2016-12-22 14:31:19 +01:00
twinaphex ad7386913c Rename runloop_msg_queue_push to video_driver_msg_queue_push
and move code to video_driver.c
2016-12-22 13:15:02 +01:00
twinaphex 5d6067159c gl_common.c - config.h include 2016-12-21 16:09:29 +01:00
twinaphex 19810233fa Comment this out for PSGL 2016-12-21 16:06:42 +01:00
twinaphex 9dd7d7804e Turn size_format into gl_size_format, and add a FIXME note 2016-12-21 15:47:38 +01:00
twinaphex 58716e5f3c Silence some Coverity warnings 2016-12-21 01:34:28 +01:00
Twinaphex d23beed9bb Merge pull request #4288 from Themaister/master
Vulkan: Fix menu shader parameters for slangp.
2016-12-21 00:20:06 +01:00
Logan McNaughton 21779c87b8 Missed one of the texture formats 2016-12-20 10:10:23 -07:00
Logan McNaughton 3392f3996b Fix up some texture format code 2016-12-20 08:57:13 -08:00
Hans-Kristian Arntzen 4e9fe4bd54 Vulkan: Fix menu shader parameters for slangp.
video_shader_resolve_parameters did not take #includes into account
while the Vulkan implementation did. Added a helper function which
parses a shader file and figures out the shader parameters in the same
way.
2016-12-20 15:58:37 +01:00
twinaphex 5ca7344436 Get rid of more implicit memsets 2016-12-19 19:17:23 +01:00
twinaphex 31b87594aa Get rid of some implicit memsets for state tracker 2016-12-19 19:08:37 +01:00
Hans-Kristian Arntzen c48bb6284e Wayland: Cursor toggling. 2016-12-17 21:34:51 +01:00
Hans-Kristian Arntzen 313ac63c33 Make use of xkb_state_update_mask.
Fixes mod keys in Wayland it seems.
2016-12-17 20:42:48 +01:00
Hans-Kristian Arntzen b2059dcb79 Implement basic Wayland keyboard and mouse. 2016-12-17 20:28:08 +01:00
twinaphex feae0823ce Prevent some implicit memsets 2016-12-17 14:40:06 +01:00
twinaphex 96ffd8e025 Revert "Remove HAVE_COMPRESSION ifdefs in file_path.c"
This reverts commit 4103b70833.
2016-12-17 12:55:38 +01:00
Twinaphex accf137020 Merge pull request #4260 from Themaister/master
Vulkan: Fix VSync toggling on Windows.
2016-12-17 12:23:15 +01:00
twinaphex 4103b70833 Remove HAVE_COMPRESSION ifdefs in file_path.c 2016-12-17 12:20:49 +01:00
Hans-Kristian Arntzen 4c99809cde Vulkan: Fix VSync toggling on Windows.
Retarded bug, but haven't actually had access to a Windows machine until
now.
2016-12-17 12:06:43 +01:00
Twinaphex b48d896c1e Merge pull request #4249 from joolswills/mali_fbdev_ctx_warning
added stdlib.h - fixes warning with free / system
2016-12-15 20:01:18 +01:00
Jools Wills 4153785130 added stdlib.h - fixes warning with free / system 2016-12-15 18:59:20 +00:00
twinaphex a5d4032d01 (X11) Cleanups 2016-12-15 12:37:14 +01:00
twinaphex 97c9eab9ba (menu_displaylist.c) Indenting breaks syntax formatting for vim 2016-12-15 08:36:28 +01:00
twinaphex 6807ef007b (gl_common.c) Cleanups 2016-12-14 19:29:14 +01:00
Logan McNaughton fc4c7529a1 Fix internal formats used with texture creation 2016-12-14 09:54:55 -08:00
twinaphex f9b019c83a Rename loadTexture to gl_load_texture_image 2016-12-14 16:59:16 +01:00
Logan McNaughton 8cd2566128 Simplify glTexImage2D/glTexStorage2D calls
Also add support for glTexStorage2DEXT (GLES2)
2016-12-14 07:29:37 -08:00
twinaphex 6a45541f24 (Vulkan) Rename pipeline files 2016-12-12 13:17:20 +01:00
twinaphex 8042c2ac62 Move config_file_userdata.c to libretro-common 2016-12-12 12:36:46 +01:00