sdl2_frt/src
Sam Lantinga aeee424f65 Fixed bug 4349 - SDL_CreateWindow fails with KMS/DRM after upgrading Mesa to 18.2.3
Rainer Sabelka

After I did an upgrade of my arch Linux installation (resulting in an update of Mesa to version 18.2.3), all my SDL2 applications which use the KMS/DRM driver stopped working.
Reason: Creating a Window with SDL_CreateWindow failed because the call to EGL
eglCreateWindowSurface() returns an error "EGL_BAD_MATCH".
After investigating with the debugger I figured, that the configuration, which has been selected from the output of eglChooseConfig(), has an "EGL_NATIVE_VISUAL_ID" which does not match the "format" of the underlying gbm surface.

The attached patch fixes the problem. It does so, by mimicking Weston's behavior.
All configurations returned from eglChooseConfig() which have an visual_id different from the gbm format are discarded, and only from the remaining ones the "best" match is selected.
2018-10-31 15:16:51 -07:00
..
atomic SDL_atomic.c, SDL_spinlock.c: use lock prefix with xchg in Watcom asm. 2018-09-27 11:55:02 +03:00
audio Add and update include guards 2018-10-28 21:36:48 +01:00
core Fixed bug 4347 - Keyboard LEDs don't work on linux console 2018-10-31 15:01:20 -07:00
cpuinfo Fixed bug 4277 - warnings patch 2018-09-27 14:56:29 -07:00
dynapi Generalized the XInput user index into a player index 2018-10-25 16:53:14 -07:00
events Add and update include guards 2018-10-28 21:36:48 +01:00
file Updated copyright for 2018 2018-01-03 10:03:25 -08:00
filesystem revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
haptic Add and update include guards 2018-10-28 21:36:48 +01:00
hidapi Don't build SDL_JOYSTICK_HIDAPI by default on iOS 2018-10-26 09:27:31 -07:00
joystick Add and update include guards 2018-10-28 21:36:48 +01:00
libm Add and update include guards 2018-10-28 21:36:48 +01:00
loadso Updated copyright for 2018 2018-01-03 10:03:25 -08:00
main winmain: Patched to compile on C89 compilers. 2018-10-29 20:18:50 -04:00
power SDL_power.c: Adjust SDL_POWER_DISABLED ifdefs to avoid zero-size array 2018-10-15 11:01:00 +03:00
render Fixed bug 4188 - Software renderer SDL_RenderCopyEx blits corrupt image under certain cases 2018-10-30 07:00:03 -07:00
sensor Add and update include guards 2018-10-28 21:36:48 +01:00
stdlib Fixed bug 4283 - SDL's version of memset is different from libc's 2018-09-28 20:48:18 -07:00
test Added SDL_GetDisplayOrientation() to get the display orientation, and added a new event SDL_DISPLAYEVENT to notify the application when the orientation changes. 2018-08-22 21:48:28 -07:00
thread thread: make SDL_CreateThreadWithStackSize() a public API. 2018-10-11 16:40:01 -04:00
timer Add and update include guards 2018-10-28 21:36:48 +01:00
video Fixed bug 4349 - SDL_CreateWindow fails with KMS/DRM after upgrading Mesa to 18.2.3 2018-10-31 15:16:51 -07:00
SDL_assert_c.h Add and update include guards 2018-10-28 21:36:48 +01:00
SDL_assert.c use the 'aborts' pragma of Watcom for SDL_NORETURN functions 2018-06-13 14:45:02 +03:00
SDL_dataqueue.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_dataqueue.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_error_c.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_error.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_hints.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_internal.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_log.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL.c Fixed whitespace 2018-09-24 11:49:25 -07:00