Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283656 - 3d fails with x11-drivers/ati-drivers-8.593 and >libdrm-2.4.12
Summary: 3d fails with x11-drivers/ati-drivers-8.593 and >libdrm-2.4.12
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-04 12:31 UTC by Henning Fleddermann
Modified: 2009-09-04 16:33 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henning Fleddermann 2009-09-04 12:31:29 UTC
Apparently due to some kind of API change in libdrm 3d in ati-drivers-8.593 only works with libdrm up to version 2.4.12 . With newer versions it throws "X Error of failed request:  BadRequest (invalid request code or no such operation)" whenever you try to do something 3d-ish (even glxinfo). Since I had a hard time figuring this out (literally spent hours) I thought I should probably fill a bug, so others wont run into this problem. :)

Reproducible: Always

Steps to Reproduce:
1. Install ati-drivers-8.593
2. Install libdrm-2.4.13
3. Run something 3d-ish like glxgears.

Actual Results:  
Application crashes and throws some kind of "X Error of failed request:  BadRequest (invalid request code or no such operation)" error-message.

Expected Results:  
A blue, a red and a green gear happily spinning around in a window.

Suggested fix:
Make ati-drivers-8.593 depend on <=libdrm-2.4.12 .
I don't know very much about writing ebuilds, else I would attach a fixed one myself... I guess it's just a one-line change in the ebuild.
Comment 1 Rémi Cardona (RETIRED) gentoo-dev 2009-09-04 14:32:06 UTC
Please try rebuilding ati-drivers.

Oh and for the record, 8.x series of ati-drivers are no longer maintained. If rebuilding the package doesn't work, please either use the 9.x series or the open source xf86-video-ati if the former doesn't support your chip.

Thanks
Comment 2 Henning Fleddermann 2009-09-04 15:19:39 UTC
(In reply to comment #1)
> Please try rebuilding ati-drivers.

I did. At least a dozen times. I also tried about every graphic-related kernel option and rebuild that as well (and then of course also rebuild ati-drivers). Oh and X Server was also rebuild a few times.
The problem is definitely the libdrm-2.4.13 .
And using any driver >8.593 is no option because that's the last one supporting my card (X1900 XT).
And the free radeon driver works great, but also is no option right now if you want >= OpenGL 2.0 (Oh how I long for the day it'll pick up OpenGL 2.1 ...).

Anyway if you don't want to fix this in the ebuild that's fine. I understand that the <=8.593 drivers are unsupported. 
I've already fixed this problem for me, so I'm happy :). Just thought there were probably some other users which have the same problem.

I'll just report the fix here so people who have this problem can easily find it via google:

If you get 
X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  143 (GLX)
  Minor opcode of failed request:  19 (X_GLXQueryServerString)
  Serial number of failed request:  14
  Current serial number in output stream:  14
whenever you try to run a opengl-app you need to downgrade your libdrm. Do as root:
echo ">x11-libs/libdrm-2.4.12" >> /etc/portage/package.mask
emerge -v libdrm
emerge -v mesa xorg-server ati-drivers
and then reboot. 3d should be working again then.
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-04 16:33:12 UTC
Well when we finish cleaning up of the 9.8 driver and the 1.5 xorg-server is still around we might fix it. Otherwise the driver just dies.