SDL/src/video
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
..
android Don't flash the navigation bar when destroying a fullscreen SDL window 2018-10-08 12:49:25 -07:00
cocoa cocoa: Put a mutex around GL_SwapBuffers. 2018-10-18 23:38:27 -04:00
directfb Fixed whitespace 2018-09-24 11:49:25 -07:00
dummy Add and update include guards 2018-10-28 21:36:48 +01:00
emscripten Emscripten: Load eglQueryString and eglGetError 2018-10-13 17:18:59 +01:00
haiku Fixed whitespace 2018-09-24 11:49:25 -07:00
khronos Fixed bug 3616 - SDL_GL_CreateContext fails with SDL_GL_CONTEXT_DEBUG_FLAG and ANGLE/GLES 2.0 2017-08-29 22:04:43 -07:00
kmsdrm Fixed bug 4349 - SDL_CreateWindow fails with KMS/DRM after upgrading Mesa to 18.2.3 2018-10-31 15:16:51 -07:00
mir revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
nacl Updated copyright for 2018 2018-01-03 10:03:25 -08:00
pandora Updated copyright for 2018 2018-01-03 10:03:25 -08:00
psp Updated copyright for 2018 2018-01-03 10:03:25 -08:00
qnx Fixed mingw Windows build, since SDL_vulkan_internal.h includes windows.h 2017-08-28 00:43:14 -07:00
raspberry Fixed whitespace 2018-09-24 11:49:25 -07:00
uikit iOS: Don't ignore the requested alpha bit size when determining whether to use an RGBA8 backbuffer. 2018-10-14 17:26:10 -03:00
vivante Updated copyright for 2018 2018-01-03 10:03:25 -08:00
wayland Add and update include guards 2018-10-28 21:36:48 +01:00
windows Implement SuspendScreenSaver for Win32 2018-10-09 23:01:43 -07:00
winrt revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
x11 Add and update include guards 2018-10-28 21:36:48 +01:00
yuv2rgb yuv: Patched to make static analysis happy (warned about unused variable). 2018-06-25 13:14:52 -04:00
SDL_blit_1.c Fixed whitespace 2018-09-24 11:49:25 -07:00
SDL_blit_0.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_A.c Fixed whitespace 2018-09-24 11:49:25 -07:00
SDL_blit_auto.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_auto.h Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_copy.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_copy.h Add and update include guards 2018-10-28 21:36:48 +01:00
SDL_blit_N.c Working on bug 3921 - Add some Fastpath to BlitNtoNKey and BlitNtoNKeyCopyAlpha 2018-10-01 14:43:03 -07:00
SDL_blit_slow.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_blit_slow.h Add and update include guards 2018-10-28 21:36:48 +01:00
SDL_blit.c revert the recent typecast assignment changes (see bug #4079) 2018-02-12 17:00:00 +03:00
SDL_blit.h SDL_blit_N.c (BlitNtoNKeyCopyAlpha): fix -Wshadow warnings by adding _ 2018-10-01 21:29:11 +03:00
SDL_bmp.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_clipboard.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_egl_c.h 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_egl.c 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_fillrect.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_pixels_c.h Add and update include guards 2018-10-28 21:36:48 +01:00
SDL_pixels.c Fixed whitespace 2018-09-24 11:49:25 -07:00
SDL_rect_c.h Add and update include guards 2018-10-28 21:36:48 +01:00
SDL_rect.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_RLEaccel_c.h Add and update include guards 2018-10-28 21:36:48 +01:00
SDL_RLEaccel.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_shape_internals.h Fixed whitespace 2018-09-24 11:49:25 -07:00
SDL_shape.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_stretch.c Updated copyright for 2018 2018-01-03 10:03:25 -08:00
SDL_surface.c Fixed bug 4277 - warnings patch 2018-09-27 14:56:29 -07:00
SDL_sysvideo.h 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
SDL_video.c Fixed whitespace 2018-09-24 11:49:25 -07:00
SDL_vulkan_internal.h Backout the vulkan change in d449dea10fc8 breaks Mir builds 2018-02-23 19:12:04 -05:00
SDL_vulkan_utils.c Fixed whitespace 2018-09-24 11:49:25 -07:00
SDL_yuv_c.h Add and update include guards 2018-10-28 21:36:48 +01:00
SDL_yuv.c Fixed bug 4277 - warnings patch 2018-09-27 14:56:29 -07:00
sdlgenblit.pl Updated copyright for 2018 2018-01-03 10:03:25 -08:00