Brandon Wright
95f8205fd1
Add DRM interface for refresh rate.
2018-04-16 15:36:46 -05:00
Brandon Wright
533f898132
Add get refresh rate context function. Implement for X11 and Wayland.
2018-04-15 17:56:12 -05:00
twinaphex
923ab3b6f4
(DRM Ctx) Buildfix
2018-03-27 14:19:36 +02:00
twinaphex
16c1bd7a03
Create context get_api function
2018-03-01 21:16:54 +01:00
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
twinaphex
97095404bd
Buildfixes
2017-11-13 11:04:09 +01:00
Alcaro
d005adbd42
Remove filestream dependency
...
This causes issues in #5664
2017-11-13 09:42:39 +00:00
twinaphex
3443153ccc
(DRM/KMS) If we have the X11 input driver selected, default to udev and/or
...
linuxraw driver instead
2017-06-06 21:15:32 +02:00
twinaphex
b0398c1482
C89 build fixes
2017-05-19 03:34:53 +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
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
207ebe5e59
Merge lakka patch for DRM
2017-01-29 03:55:32 +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
7d624fdedb
Push some build fixes when compiling with --disable-opengl --disable-shaderpipeline
2017-01-22 22:18:00 +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
9d1de5c974
Rewrite video_context_driver_set_resize
2017-01-19 14:31:57 +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
40cd1b70cd
Remove runloop.h header includes
2017-01-18 17:43:23 +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
twinaphex
666534cc74
Grab settings pointer only once inside wrapper 'input_driver' function
2017-01-16 00:14:10 +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
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
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
b243fec095
Simplif gfx_ctx_drm_queue_flip
2017-01-01 06:06:44 +01:00
twinaphex
77e5cdbfde
Revert "Rename runloop_msg_queue_push to video_driver_msg_queue_push"
...
This reverts commit ad7386913cf2876d2bffd4bedf0284b23f1ed593.
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
88b1c3ed4c
Initialize char variables
2016-11-25 18:26:11 +01:00
Mikael Brunnhede
80dc3bec09
if 0 missed Vblank log printout code, since it may cause performance degradation.
2016-10-14 12:45:00 +02:00
Mikael Brunnhede
ca5e20bcaf
Remove missed Vblank log printout, since it may cause performance degradation.
2016-10-14 08:59:07 +02:00
twinaphex
0d49ed5877
drm_ctx.c - remove dead assignment
2016-09-22 20:56:42 +02:00
twinaphex
51b0e61712
Cleanups
2016-09-11 16:24: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
cf4bf344a9
add configuration option to toggle showing hidden files (default on), fixes issue #2769
2016-08-27 21:48:55 -04:00
Brad Parker
cc582db6fb
recursively scan directories for database content, fixes issue #3139
2016-08-21 00:59:41 -04:00
twinaphex
d98fad0d98
Simplify free_drm_resources
2016-07-23 06:05:21 +02:00
twinaphex
76cc6fd8ec
Start implementing signal handler code once in frontend driver code
2016-07-08 02:38:33 +02:00
twinaphex
a24d43c8fd
Add GFX_CTX_FLAGS_CUSTOMIZABLE_SWAPCHAIN_IMAGES display flag
2016-06-27 23:43:57 +02:00
twinaphex
8a8fadc5b2
Implement max swapchain images setting, implement it first for DRM/KMS context
2016-06-21 21:36:58 +02:00
twinaphex
c17315cd27
(DRM) Prevent double free and prevent dereference before NULL check
2016-05-23 22:30:01 +02:00
Hans-Kristian Arntzen
d723411436
De ioctl video_driver.
2016-05-08 14:00:51 +02:00