Cross-platform multimedia library
Go to file
Ian Mullins 3567682ae7 Fix assumption that DRI_DEVNAME begins at 0
The existing logic of the code was to count every possible entry in
KMSDRM_DRI_PATH. After this a for loop would start trying to open
filename0, filename1, filename2, etc. In recent Linux kernels (say
5.18) with simpledrm, the lowest KMSDRM_DRI_DEVNAME is often
/dev/dri/card1, rather than /dev/dri/card0, causing the code to fail
once /dev/dri/card0 has failed to open. Running:

modprobe foodrm && modprobe bardrm && rmmod foodrm

before you try to run an application with SDL KMSDRM would have also
made this fail.

Fix assumption that DRI_DEVNAME begins at 0

Additional changes to SDL2-2.0.22-fix-dri-assumption.patch

Retesting zuul build
2022-07-13 10:37:40 +01:00
.gitignore Update to 2.0.22 2022-04-29 23:45:59 -04:00
multilib.patch Update to 2.0.14 2021-01-21 16:29:21 +00:00
SDL2-2.0.9-khrplatform.patch use khrplatform defines, not ptrdiff_t 2019-02-15 20:27:21 -05:00
SDL2-2.0.22-fix-dri-assumption.patch Fix assumption that DRI_DEVNAME begins at 0 2022-07-13 10:37:40 +01:00
SDL2-2.0.22-prefer-wayland.patch Update to 2.0.22 2022-04-29 23:45:59 -04:00
SDL2.spec Fix assumption that DRI_DEVNAME begins at 0 2022-07-13 10:37:40 +01:00
SDL_config.h Add riscv64 to SDL_config.h 2018-03-30 13:50:44 +01:00
SDL_revision.h fix multilib conflict with SDL_revision.h (bz 2008838) 2021-10-06 18:26:55 -04:00
sources Update to 2.0.22 2022-04-29 23:45:59 -04:00