Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GBM renderer fails on radeonsi AMD driver #25213

Open
1 of 7 tasks
Serafean opened this issue May 14, 2024 · 1 comment
Open
1 of 7 tasks

GBM renderer fails on radeonsi AMD driver #25213

Serafean opened this issue May 14, 2024 · 1 comment
Assignees
Labels
Component: Windowing Platform: Linux Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it

Comments

@Serafean
Copy link

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:

  1. set system to use radeonsi driver
  2. 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.

@neo1973 neo1973 added Platform: Linux Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it Component: Windowing labels May 14, 2024
@lrusak lrusak self-assigned this May 15, 2024
@Serafean
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Windowing Platform: Linux Triage: Needed (managed by bot!) issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

3 participants