GBM renderer fails on radeonsi AMD driver
Serafean opened this issue · comments
Bug report
Describe the bug
Here is a clear and concise description of what the problem is:
AMD 780M GPU, radeonsi driver, attempting to run kodi using the GBM renderer fails.
Expected Behavior
Here is a clear and concise description of what was expected to happen:
Kodi starts
Actual Behavior
Kodi fails to launch with following log
debug <general>: failed to find EGL config with EGL_NATIVE_VISUAL_ID=808669761
debug <general>: failed to find EGL config with EGL_NATIVE_VISUAL_ID=808669784
debug <general>: failed to find EGL config with EGL_NATIVE_VISUAL_ID=875713089
debug <general>: failed to find EGL config with EGL_NATIVE_VISUAL_ID=875713112
debug <general>: CApplication::CreateGUI - unable to init gbm windowing system
Possible Fix
radeonsi driver doesn't support the attribute combination Kodi requests. Possibly report to mesa developers. My knowledge in this area is nonexistant, so I can't do it while being helpful.
To Reproduce
Steps to reproduce the behavior:
- set system to use radeonsi driver
- run kodi GBM
Debuglog
The debuglog can be found here:
https://paste.kodi.tv/uwinezuwev.kodi
Screenshots
Here are some links or screenshots to help explain the problem:
Additional context or screenshots (if appropriate)
Here is some additional context or explanation that might help:
I mucked around a bit in the code, and in EGLUitls.cpp:323 eglChooseConfig
returns 0 matched configs.
eglinfo output: https://paste.kodi.tv/curusiporu
Although someone seems to have got kodi + gbm + radeonsi running: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9885
kmscube works on this system.
Your Environment
Used Operating system:
-
Android
-
iOS
-
tvOS
-
Linux
-
macOS
-
Windows
-
Windows UWP
-
Operating system version/name: Gentoo , mesa-24.0.7, linux-6.8.9
-
Kodi version: 21.0
note: Once the issue is made we require you to update it with new information or Kodi versions should that be required.
Team Kodi will consider your problem report however, we will not make any promises the problem will be solved.
update: Kodi seems to work when run as root. I'm really confused here: the kodi user is a member of all groups that appear in /dev/dri (namely video and render) ; and does get access as per calls seen in strace.