SDL/src/video
Sam Lantinga f8839289b0 Potential fix for bug 5393 - KMSDRM: using atomic mode setting breaks GPU compatibility
Substring

I was trying the KMSDRM video backend with some very simple programs that were working ok on 2.0.12. The same code won?t work on the current dev branch and I get:

DEBUG: check_modesetting: probing ?/dev/dri/card0?
DEBUG: /dev/dri/card0 connector, encoder and CRTC counts are: 4 5 6
DEBUG: check_modesetting: probing ?/dev/dri/card0?
DEBUG: /dev/dri/card0 connector, encoder and CRTC counts are: 4 5 6
DEBUG: KMSDRM_VideoInit()
DEBUG: Opening device /dev/dri/card0
DEBUG: Opened DRM FD (3)
DEBUG: no atomic modesetting support.
DEBUG: Video subsystem has not been initialized
INFO: Using SDL video driver: (null)
DEBUG: Video subsystem has not been initialized

After carefully checking, the radeon driver doesn?t support atomic modesetting. That?s not the only problem : the same happens with the amdgpu driver if we disable Display Core (kernel parameter amdgpu.dc=0, which is required to get analogue outputs working).

This is a major regression in the KMSDRM driver.

Using atomic mode setting is great, but having no fallback to the "standard KMS" is bad.
2020-12-15 12:22:48 -08:00
..
android Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
arm ARM: NEON assembly optimization for SDL_FillRect 2019-10-24 21:17:52 -04:00
cocoa Fixed compile warning 2020-12-13 02:10:46 -08:00
directfb Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
dummy Merge VideoBootStrap::available into VideoBootStrap::create 2020-07-12 19:11:15 -04:00
emscripten Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
haiku remove a few stale NULL message/title checks after commit e2b729b1756a 2020-12-10 12:24:24 +03:00
khronos Updated Vulkan headers to version 1.2.158 2020-10-24 10:46:18 -07:00
kmsdrm Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
kmsdrm_legacy Potential fix for bug 5393 - KMSDRM: using atomic mode setting breaks GPU compatibility 2020-12-15 12:22:48 -08:00
nacl Merge VideoBootStrap::available into VideoBootStrap::create 2020-07-12 19:11:15 -04:00
offscreen Merge VideoBootStrap::available into VideoBootStrap::create 2020-07-12 19:11:15 -04:00
os2 fix bug #5253: handle NULL title or message fields in SDL_MessageBoxData 2020-12-10 11:20:56 +03:00
pandora Added events for dynamically connecting and disconnecting displays, with an iOS implementation 2020-10-08 16:42:20 -07:00
psp Added events for dynamically connecting and disconnecting displays, with an iOS implementation 2020-10-08 16:42:20 -07:00
qnx Added events for dynamically connecting and disconnecting displays, with an iOS implementation 2020-10-08 16:42:20 -07:00
raspberry Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
uikit Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
vivante Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
wayland Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
windows remove a few stale NULL message/title checks after commit e2b729b1756a 2020-12-10 12:24:24 +03:00
winrt Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
x11 remove a few stale NULL message/title checks after commit e2b729b1756a 2020-12-10 12:24:24 +03:00
yuv2rgb Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit_0.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_1.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_A.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_auto.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_auto.h Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_blit_copy.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit_copy.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit_N.c Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
SDL_blit_slow.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_blit_slow.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_bmp.c Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
SDL_clipboard.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_egl.c egl: Make SDL_EGL_HasExtension() available outside of SDL_egl.c. 2020-09-10 15:02:00 -04:00
SDL_egl_c.h egl: Make SDL_EGL_HasExtension() available outside of SDL_egl.c. 2020-09-10 15:02:00 -04:00
SDL_fillrect.c SDL_FillRects: prevent empty SDL_surface from raising an error message 2020-11-27 09:42:14 +01:00
SDL_pixels.c SDL_Surface refcount: destination surface keep track of surfaces 2020-09-07 18:50:30 +02:00
SDL_pixels_c.h SDL_Surface refcount: destination surface keep track of surfaces 2020-09-07 18:50:30 +02:00
SDL_rect.c Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
SDL_rect_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_RLEaccel.c Fixed bug 5333 - Replace character of legacy code page with utf-8 one. 2020-11-08 23:34:59 -08:00
SDL_RLEaccel_c.h A few #defines to reduce SDL2 footprint. 2020-01-21 21:33:40 +01:00
SDL_shape.c Fixed bug 5235 - All internal sources should include SDL_assert.h 2020-12-09 07:16:22 -08:00
SDL_shape_internals.h SDL_shape_internals.h: forward-declare struct SDL_ShapeTree. 2020-10-25 10:10:10 +03:00
SDL_stretch.c Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
SDL_surface.c Fixed bug 5304 - add SDL_HasSurfaceRLE() (Thanks Rene Dudfield and Dan Lawrence) 2020-10-18 09:52:56 +02:00
SDL_sysvideo.h Potential fix for bug 5393 - KMSDRM: using atomic mode setting breaks GPU compatibility 2020-12-15 12:22:48 -08:00
SDL_video.c Potential fix for bug 5393 - KMSDRM: using atomic mode setting breaks GPU compatibility 2020-12-15 12:22:48 -08:00
SDL_vulkan_internal.h Fixed bug 5354 - DirectFB: Add Vulkan support 2020-11-23 21:25:07 -08:00
SDL_vulkan_utils.c Updated Vulkan headers to version 1.2.158 2020-10-24 10:46:18 -07:00
SDL_yuv.c Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00
SDL_yuv_c.h Updated copyright date for 2020 2020-01-16 20:49:25 -08:00
sdlgenblit.pl Added a single SDL_LEAN_AND_MEAN define to turn on minimal SDL builds 2020-01-23 01:00:52 -08:00