Commit Graph

57 Commits

Author SHA1 Message Date
gblues 6904101c44 Clean up trailing whitespace
== DETAILS

Really simple code cleanup, because my editor flags trailing whitespaces
and it's pretty annoying.
2017-12-12 00:24:18 -08:00
Themaister 75b84b4f94 Support pending swapchain creation. 2017-12-09 17:28:20 +01:00
twinaphex f087419165 Rename platform_linux.c to platform_unix.c 2017-06-19 17:38:49 +02:00
twinaphex a3f216ba86 (Android) Try to move this code to set_video_mode 2017-06-18 17:21:33 +02:00
twinaphex 4850af8eac Revert "Try to set use_hw_ctx in advance for Android"
This reverts commit c010c5b258.
2017-06-18 17:09:27 +02:00
twinaphex c010c5b258 Try to set use_hw_ctx in advance for Android 2017-06-18 16:45:36 +02:00
twinaphex b0398c1482 C89 build fixes 2017-05-19 03:34:53 +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 6247d6ea1d Update check_window - we no longer need runloop.h inside context driver 2017-01-23 01:02:33 +01:00
twinaphex 1ea3bea0ee Don't pass video_info by value to context_driver init function 2017-01-22 18:29:22 +01:00
twinaphex 96c8ca5a09 Header update #1 2017-01-22 13:40:32 +01:00
twinaphex 7fbd3fcfb6 Simplify has_windowed 2017-01-19 02:50:56 +01:00
twinaphex b96e0bb820 Remove stub update_title functions 2017-01-19 01:58:44 +01:00
twinaphex 34da27c36b Don't need 'frame_count' variable for check_window 2017-01-18 21:47:12 +01:00
twinaphex a6a4808e94 Refactor frame monitor code 2017-01-18 17:41:27 +01:00
twinaphex 805c4c2d12 (android_ctx.c) Initialize these variables 2017-01-17 17:28:19 +01:00
twinaphex 666534cc74 Grab settings pointer only once inside wrapper 'input_driver' function 2017-01-16 00:14:10 +01:00
twinaphex 1fa3475d79 Add parameter to video_context_driver's 'init' function 2017-01-13 16:52:07 +01:00
twinaphex 80f79130c0 Update set_video_mode context driver callback function 2017-01-11 06:35:50 +01:00
twinaphex c1c35c5120 More platform build fixes 2017-01-10 21:15:52 +01:00
twinaphex 36fb6776b2 Don't grab settings pointer in video_monitor_get_fps function 2017-01-09 15:42:14 +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 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 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 49c78ea2ff (Drivers context) Cleanups 2016-12-04 03:51:12 +01:00
twinaphex e27940e646 Fixes Android 2.4 compatibility 2016-11-19 03:54:21 +01:00
twinaphex 8e941ee77a (android_ctx.c) Prevent implicit memsets 2016-11-06 18:39:38 +01:00
Logan McNaughton 200cf15044 Add egl debug context option for Android
According to https://www.khronos.org/registry/egl/extensions/KHR/EGL_KHR_create_context.txt

"The default value of EGL_CONTEXT_FLAGS_KHR is zero"

So this should keep it at 0 if debug=false, and set it to EGL_CONTEXT_OPENGL_DEBUG_BIT_KHR is debug=true

Fixes https://github.com/libretro/RetroArch/issues/3910
2016-10-31 15:28:45 -06:00
twinaphex 51b0e61712 Cleanups 2016-09-11 16:24:02 +02:00
twinaphex 7e83162c60 Remove general.h 2016-09-11 15:10:58 +02:00
twinaphex 6f47289ba6 Start adding HAVE_CONFIG_H to gfx/drivers_context 2016-09-06 19:39:02 +02:00
twinaphex acd4dd527b Header include cleanups 2016-09-05 18:31:32 +02:00
twinaphex aa15fb3f91 Update remaining video context drivers 2016-08-31 15:02:07 +02:00
Brad Parker 2afd72252c make GLX context current when creating font textures with threaded video 2016-08-31 01:33:35 -04:00
Logan McNaughton 1beb9e9ffd EGL_DEPTH_SIZE should be set
EGL_DEPTH_SIZE needs to be set in order to have an FBO with a depth buffer. Some drivers aren't as strict about this but many are.
2016-08-30 15:29:17 -06:00
twinaphex 035d006d62 Set attrib to EGL_OPENGL_ES3_BIT_KRH if g_es3 is true 2016-08-23 00:09:33 +02:00
Hans-Kristian Arntzen e7b4f4fd4d Fix various Android Vulkan issues.
Was getting bogus swapchain width/height causing weird issues.
Also, create swapchain after swap interval is correctly set.
2016-06-13 19:51:44 +02:00
Hans-Kristian Arntzen c374c9853d Some potential fixes for Android Vulkan. 2016-06-07 01:43:14 +02:00
twinaphex 60233d1abb Add set_flags to context driver 2016-05-05 17:35:28 +02:00
twinaphex 8136683ffc (context drivers) Start exposing core GL flag 2016-05-05 05:46:00 +02:00
twinaphex a0425dfb14 (Context drivers) Add get_flags function 2016-05-05 05:35:35 +02:00
twinaphex 8467ce114c (Android) Followup to earlier commit 2016-03-12 08:53:27 +01:00
twinaphex 432d7a358a (Android) Move Android-specific Moto G2 DPI workaround to android graphics context
driver
2016-03-12 08:52:29 +01:00
twinaphex 702d4f9e3a (Android) Buildfix 2016-03-01 22:26:57 +01:00
twinaphex ac584330bb (Android) Bugfix 2016-03-01 21:58:35 +01:00
twinaphex c44107949d (Vulkan) Pass width and height to vulkan_surface_create 2016-03-01 18:35:41 +01:00
twinaphex 5f125bc1f6 (Android) Only need to pass window for Android 2016-03-01 18:22:17 +01:00
twinaphex eaa0b08bc2 (Android) Hook up Vulkan for gfx_ctx_bind_api 2016-03-01 18:21:09 +01:00
twinaphex b8c1e31c13 (Android/Vulkan) Start hooking up Vulkan for Android context driver 2016-03-01 18:16:22 +01:00