Backport patch to 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
/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.
sudo dnf upgrade --refresh --advisory=FEDORA-2022-81c33e7af3
Please login to add feedback.