Skip to contentSkip to conversation

glxinfo: Error: couldn't find RGB GLX visual or fbconfig; GetVisualConfigs returns 0 visuals; All fbconfigs have VisDepth = 0

Bug 92039 [email protected] 1 participant 12 messages Sep 18, 2015 – Aug 31, 2018

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=92039

Bug ID: 92039
Summary: glxinfo: Error: couldn't find RGB GLX visual or
fbconfig; GetVisualConfigs returns 0 visuals; All fbconfigs have VisDepth = 0
Product: Mesa
Version: 10.1
Hardware: All
OS: Linux (All)
Status: NEW
Severity: critical
Priority: medium
Component: Drivers/Gallium/radeonsi
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]

Created attachment 118341
--> https://bugs.freedesktop.org/attachment.cgi?id=118341&action=edit
XOrg.0.log

glxinfo displays visuals correctly for mesa 9.2.5 (SW rendering works ok - checked with glxgears) but when mesa updated to 10.1.2 I'm getting error:
libGL error: failed to load driver: radeonsi
libGL error: failed to load driver: swrast
Error: couldn't find RGB GLX visual or fbconfig
Error: couldn't find RGB GLX visual or fbconfig

xdpyinfo returns only 3 X visuals (for mesa 9.2.5 it was about 100) glxinfo return 0 GLX visuals and all GLXFBConfigs have VisDepth = 0

Traced in libGL.so (glxect.c):
GetVisualConfigs returns 0 visuals.

Answering this question would help:
Where in mesa creating/getting information about visuals is done?

XOrg.O.log shows no error.

I suspect the problem is in radeonsi_drv.so, but for sure it's in Mesa.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#1 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=92039

[email protected] changed:

What |Removed |Added
----------------------------------------------------------------------------

           Priority|medium                      |high
                 CC|                            |[email protected]
                   |                            |om
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

--- Comment #3 from Emil Velikov <[email protected]> --- Hi Mikolaj

Here are a few things to try (keep in mind that I'm not a radeon dev)
- Afaics this is a PPC - is it big endian (BE) system ?
- Do try a later mesa 10.6.x or 11.0.x. Last (and final) 10.1.x was rolled out
~15 months ago, plus we had some BE fixes that just landed.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

--- Comment #4 from [email protected] ---
I've tried mesa 10.4.4 with the same result (yes this is PPC). And I haven't tried higher version since it needs Xserver update.
Anyway it displays visuals correctly for mesa 9.2.5.
So it's communication between radeonsi_dri.so and xserver which is broken (even xdpyinfo shows only 3 X visuals).

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#6 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

--- Comment #5 from Emil Velikov <[email protected]> --- So it does sound like you're having a BE system. Handful of fixes for those just landed in 10.6/11.0 I'm afraid.

Although I'm not sure why newer xserver will be required... guessing you're running a old (pre glamor, or out-of-tree glamor) one ? If you're worried about messing up your setup you can always grab a recent enough livecd or install Fedora rawhide/Archlinux/etc in a separate partition.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

--- Comment #6 from [email protected] ---
(In reply to Emil Velikov from comment #5)
I've tried mesa 10.6.1 and results are the same (x-server 1.15.0, glamor 0.6.0) Are there any dependencies of the version required which are not checked e.g. xf86 driver or drm which can be a cause of this error ?

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#8 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

--- Comment #7 from [email protected] ---
It looks like the screen created by gallium/drivers/radeon/si_pipe.c is not getting correct configuration from the driver (or display controller ?). Which part of the system is responsible for creating visuals in the screen ?

XGetVisualInfo from XServer is returning only 3 X visuals (two 24bits depth and 1 32 bits depth) - checked with xdpyinfo.

Then xGLXGetVisualConfigs returns 0 visuals - checked with glxinfo which shows 0 GLX Visuals and al GLXFBConfigs have VisDepth = 0.

I'm using Yocto distribution for PPC where the default mesa is 9.2.5. Here is my investigation with different versions of mesa:
9.2.5:
Visuals are created correctly and SW rendering works but switching on HW rendering (loading radeonsi_dri.so) is causing GPU error. 10.1.2:
No GLX Visuals unable to run SW rendering, GPU error while loading radeonsi_dri.so
10.4.4:
No GLX Visuals, No gpu error
10.6.1:
No GLX Visuals, No gpu error

In all cases there is no error in XOrg.0.log. It shows:
...
RADEON(0): Direct rendering enabled
RADEON(0): Use GLAMOR acceleration.
RADEON(0): Acceleration enabled
...
AIGLX: Loaded and initialized radeonsi

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#9 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

--- Comment #8 from Michel Dänzer <[email protected]> ---
See bug 71789 and
http://lists.freedesktop.org/archives/mesa-dev/2015-September/095517.html for some context.

Note that this is only the tip of an iceberg of issues for the radeonsi driver on big endian hosts. Don't expect this to work anytime soon.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#10 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

--- Comment #9 from Alex Perez <[email protected]> ---
I don't think this problem is specific to radeonsi; With the very latest git-built Mesa from today, I get the exact same problem with r600. Interestingly, 3D acceleration works with 16-bit depth, albeit still with wonky colors on Big Endian. 24 bit does not work at all with the very latest mesa from git, as of today.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel

#11 lore raw
In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=92039

Timothy Arceri <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel