Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 197273

Summary: mesa: add support for g33 chipsets
Product: Gentoo Linux Reporter: Christian Hoffmann (RETIRED) <hoffie>
Component: New packagesAssignee: Gentoo X packagers <x11>
Status: RESOLVED FIXED    
Severity: enhancement CC: dizzy
Priority: High Keywords: Inclusion
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg380300.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: diff -u media-libs/mesa/mesa-7.0.1.ebuild.orig media-libs/mesa/mesa-7.0.1.ebuild

Description Christian Hoffmann (RETIRED) gentoo-dev 2007-10-28 08:41:26 UTC
mesa-7.0.1 does not have support for newer Intel chipsets like those found on g33-based boards. Currently X crashes with DRI enabled and trying to run any application which tries to do OpenGL work -- i.e. `glxinfo` makes it already crash.
There are patches [1] [2] in upstream git which will be part of mesa-7.0.2 [3].
Would be nice to get those in somehow (either as patches or with mesa-7.0.2) as I guess a bunch of users could benefit from that (I'm already using those patches with a changed mesa-7.0.1 ebuild).


[1] http://gitweb.freedesktop.org/?p=mesa/mesa.git;a=commitdiff;h=c53f1cb8132264a427177fa72cc536870c8afd9a
[2] http://gitweb.freedesktop.org/?p=mesa/mesa.git;a=commitdiff;h=0c4e35b07043f3af0ae8eb12052aa18dca362f9c
[3] http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg380300.html
Comment 1 Dizzy 2007-10-31 15:08:13 UTC
I second that, I have the same problem. I am trying to fix the issue myself but I am not sure how to make the xorg-server ebuild apply a given patch to the mesa source it unpacks just for xorg-server compilation. I even don't know how/where are the Mesa sources unpacked for xorg-server compilation (I noticed it sets some variables to the sources and downloads them but I don't see where it unpacks them). I mean I can do it easily for the media/libs/mesa package but I dont think that helps as I noticed xorg-server is "built against" given mesa source tree. So it would be nice to have a way to specify patches for the mesa tree that xorg-server may use to compile against.
Comment 2 Christian Hoffmann (RETIRED) gentoo-dev 2007-10-31 15:38:43 UTC
Created attachment 134809 [details, diff]
diff -u media-libs/mesa/mesa-7.0.1.ebuild.orig media-libs/mesa/mesa-7.0.1.ebuild

Hrm, I didn't even think of the xorg-server build, I only applied those two patches to media-libs/mesa and it just worked.

Btw, attached are the two lines I added to mesa-7.0.1.ebuild, you need patch #1 from my first post in files/mesa-7.0.1-support-945gme.patch and patch #2 in mesa-7.0.1-support-g33-q33-q35.patch
Comment 3 Dizzy 2007-10-31 15:47:34 UTC
Actually I managed to fix it by just making a custom mesa package (a 6.5.2 package). The patches referenced in the original message are slightly broken (the second patch that adds the IDs for Q33 & all depends on some changes that were not made by the first patch like adding some IDs for I945_GME in some "i945tex" directory locations but it's trivial to make them deducing them from the unified diff of the second patch that needs those). Now at least quake3 demo seems to work fine hehe.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2007-10-31 17:45:50 UTC
xorg-server only uses mesa for libglx, you don't need to worry about driver-specific mesa things in the xorg-server build.
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2007-10-31 17:46:37 UTC
We've got a new upstream mesa 7.0.2-rc1 (release candidate 1) that I'm testing, we should be able to get a release with this shortly.
Comment 6 Dizzy 2007-11-12 15:14:34 UTC
Cool, any progress on this? I am recently trying to make AVP2 work on wine and it crashes the X server in a similar way as before did any OpenGL application only this time it might be something else. I would like to test the latest upstream source that should fix this bug report and hopefully my current one.
Comment 7 Donnie Berkholz (RETIRED) gentoo-dev 2007-11-12 17:34:44 UTC
Yes, try mesa 7.0.2. I just added keywords to it a few minutes ago, but you can keyword it yourself if you don't want to wait for rsync.
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2007-11-12 17:35:05 UTC
Yes, try mesa 7.0.2. I just added keywords to it a few minutes ago, but you can keyword it yourself if you don't want to wait for rsync. Just make sure to build it and xorg-server without USE=nptl.
Comment 9 Dizzy 2007-11-13 09:42:10 UTC
Thank you, indeed now even wine AVP2 doesn't crash the X server. So far so good.