Bug 48788 - Mesa after 7.11.2 won't use hardware for OpenGL acceleration
Summary: Mesa after 7.11.2 won't use hardware for OpenGL acceleration
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 8.0
Hardware: IA64 (Itanium) Linux (All)
: medium major
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-04-16 16:28 UTC by russiane39@gmail.com
Modified: 2012-04-18 00:00 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
glxinfo output with latest mesa. (20.23 KB, text/plain)
2012-04-16 16:28 UTC, russiane39@gmail.com
Details
Xorg log when using r600g driver (32.46 KB, text/plain)
2012-04-16 16:28 UTC, russiane39@gmail.com
Details
Kernel log (32.59 KB, text/plain)
2012-04-16 16:29 UTC, russiane39@gmail.com
Details
Kernel configuration I'm using. (66.61 KB, application/octet-stream)
2012-04-16 16:30 UTC, russiane39@gmail.com
Details
Build and use log of latest mesa-git for Michel (592.42 KB, text/plain)
2012-04-17 11:22 UTC, russiane39@gmail.com
Details

Description russiane39@gmail.com 2012-04-16 16:28:21 UTC
Created attachment 60103 [details]
glxinfo output with latest mesa.

Starting from 8.0 Mesa is not uses videocard for OpenGL acceleration, although everything in logs shows that hardware is used. For now I've switched even to git versions of X.org consolidation, radeon, libdri, mesa and still no luck.
Also, for some unknown reason, but mesa won't respect LIBGL_DEBUG env vars
Here is my kernel log, glxinfo and Xorg.log:
Comment 1 russiane39@gmail.com 2012-04-16 16:28:59 UTC
Created attachment 60104 [details]
Xorg log when using r600g driver
Comment 2 russiane39@gmail.com 2012-04-16 16:29:39 UTC
Created attachment 60105 [details]
Kernel log
Comment 3 russiane39@gmail.com 2012-04-16 16:30:05 UTC
Created attachment 60106 [details]
Kernel configuration I'm using.
Comment 4 Joshua Scoggins 2012-04-16 16:33:00 UTC
I can confirm that this affects r300 based devices (FireGL X1) as well on ia64. Downgrading to Mesa 7.11.2 fixed the issue.
Comment 5 Alex Deucher 2012-04-16 16:36:32 UTC
You are using the xorg state tracker rather than xf86-video-ati.  Do things work correctly with xf86-video-ati?  Why are you using the xorg state tracker?
Comment 6 russiane39@gmail.com 2012-04-16 16:38:46 UTC
(In reply to comment #5)
> You are using the xorg state tracker rather than xf86-video-ati.  Do things
> work correctly with xf86-video-ati?  Why are you using the xorg state tracker?
Because xf86-video-ati won't works nice for me, I have obscure mouse cursor issue and even worse performance (5FPS in glxgears comparing to 20FPS with state tracker driver).
Comment 7 russiane39@gmail.com 2012-04-16 20:13:47 UTC
I've noticed different defines on 7.11.2 version and git from autogen.sh script:
For example -D for glsl_lexer :
8-git
-D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_EXTERNAL_DXTN_LIB=1
-DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV
-DFEATURE_GL=1  glsl_lexer.o

7.11:
-D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XSHM -DHAVE_LIBUDEV
-DFEATURE_GL=1 -fvisibility=hidden -D_GNU_SOURCE -DPTHREADS
-DHAVE_POSIX_MEMALIGN -DUSE_XSHM -DHAVE_LIBUDEV  -DFEATURE_GL=1


Maybe absense of USE_XSHM is evil issue ?
Comment 8 Michel Dänzer 2012-04-17 00:10:17 UTC
According to glxinfo and the related discussion on IRC, you're using the standalone software rendering libGL.so.1, which can't use hardware acceleration and doesn't know about LIBGL_DEBUG. You'll need to sort this out with folks knowledgeable about Gentoo.

(In reply to comment #6)
> Because xf86-video-ati won't works nice for me, I have obscure mouse cursor
> issue [...]

Now, that might warrant a bug report.
Comment 9 russiane39@gmail.com 2012-04-17 00:15:43 UTC
Dear Michel, looks like you didnt followed IRC discussion closely, especially today one. I've did even clean building of mesa with installation to /opt (according to wiki article in /topic of IRC channel) and the problem is still there. So please reopen bug.
Comment 10 Michel Dänzer 2012-04-17 00:33:50 UTC
As long as glxinfo says

OpenGL renderer string: Mesa X11

my analysis stands.
Comment 11 russiane39@gmail.com 2012-04-17 00:35:37 UTC
That's why I opened that issue. Reverting mesa to 7.11 solves that.
Comment 12 Dave Airlie 2012-04-17 00:35:54 UTC
what Michael said stands, you are using a libGL built for X11 sw rendering, nothing else you can do except fix the libGL build will affect this bug.
Comment 13 Dave Airlie 2012-04-17 00:36:29 UTC
you'd need to attach a full build log with configure stage to see why.
Comment 14 russiane39@gmail.com 2012-04-17 11:22:47 UTC
Created attachment 60205 [details]
Build and use log of latest mesa-git for Michel
Comment 15 russiane39@gmail.com 2012-04-17 11:23:35 UTC
I've published information, requested by Michel. Here is configure, build and some tests log in one file. I hope this time he won't be so fast on closing bugs :)
Comment 16 Adam Jackson 2012-04-17 13:53:47 UTC
This is a real bug in Mesa's configure script.  If you read carefully you'll notice there's no way to actually set default_driver in configure.ac, which means architectures that aren't officially blessed for DRI end up with the xlib version of libGL.  There's a workaround for this in the Fedora spec file:

sed -i 's/^default_driver.*$/default_driver="dri"/' configure.ac

But the configure script should be fixed.
Comment 17 russiane39@gmail.com 2012-04-17 14:36:32 UTC
After configure.ac patch (which is now in mesa-git) I can confirm that 3D acceleration working again, also, for some reason LIBGL_DEBUG env var is respected and works as intended. So, probably it works only with DRI built libGL.
Comment 18 Michel Dänzer 2012-04-18 00:00:09 UTC
(In reply to comment #15)
> I've published information, requested by Michel.

I think you mean Dave, but in the future please include this kind of information in bug reports right away.

(In reply to comment #16)
> This is a real bug in Mesa's configure script.

Yeah, sorry I jumped the gun here.

> [...] there's no way to actually set default_driver in configure.ac, which
> means architectures that aren't officially blessed for DRI end up with the xlib
> version of libGL.

I wonder if it wouldn't be better to blacklist architectures where DRI really can't work instead, if there are any.

Anyway, Dave pushed a fix for this particular problem, so resolving as fixed.

(In reply to comment #17)
> [...] for some reason LIBGL_DEBUG env var is respected and works as intended.
> So, probably it works only with DRI built libGL.

Yeah, I said so in comment #8.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.