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

Bug 149069

Summary: Enable nvidia support in compiz
Product: Gentoo Linux Reporter: Chris Gianelloni (RETIRED) <wolf31o2>
Component: New packagesAssignee: Hanno Böck <hanno>
Status: RESOLVED DUPLICATE    
Severity: normal CC: cardoe, jakub
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: compiz.patch
Cleaner patch

Description Chris Gianelloni (RETIRED) gentoo-dev 2006-09-25 08:54:33 UTC
Thanks to nvidia-drivers-9625, we now support render to texture.  However, we have to link compiz against the nvidia drivers.  The attached patch does exactly this, if VIDEO_CARDS="nvidia" and has_version 1.0.9625 of nvidia-drivers.
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-25 08:58:09 UTC
Created attachment 98031 [details, diff]
compiz.patch

This only needs to be applied to 20060921, since the NVIDIA reports say it requires 20060920+ to work.  I am using this right now, and it works perfectly.
Comment 2 Alex 2006-09-25 16:31:11 UTC
Created attachment 98080 [details, diff]
Cleaner patch

This should be a bit cleaner. Removes the duplicated econf and replaces it with $myconf.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-25 18:06:09 UTC
The newer patch won't work on non-nvidia now.
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2006-09-26 08:01:12 UTC
Chris: Wouldn't it be better to have people use eselect opengl set and set their OpenGL to the proper thing then link against /usr/lib/libGL.so, which will symlink to the proper GL?

Alex: Your patch is definitely wrong. You're breaking non-Nvidia.
Comment 5 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-26 08:17:12 UTC
Doug: yes and no.

Currently, the X.Org drivers and the beta NVIDIA binary drivers support the GLX_EXT_texture_from_pixmap extention, where the ATI drivers do not.  Of course, it means that compiz might not compile properly with the ATI drivers, if we were to use the symlink from eselect.  Basically, to get Xgl/compiz working with the ATI drivers, you need to compile compiz against the X.Org/Mesa OpenGL.  The same is true for all NVIDIA drivers <9625, too.

This is why I didn't use the /usr/$(get_libdir)/libGL.so symlink.
Comment 6 Doug Goldstein (RETIRED) gentoo-dev 2006-09-26 15:32:18 UTC
Chris: Well good point then. 

Speaking of nvidia support. I'm having an issue with mine. On startup it says that RANDR support is there (from /var/log/Xorg.0.log) and then running "xrandr" says that the RANDR extension is unavailable. This causes compiz to fail to start since it needs RANDR. Any ideas? These are with the betas.
Comment 7 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-26 17:35:03 UTC
Works for me, so I don't know.  You aren't disabling it anywhere, per chance?
Comment 8 Hanno Böck gentoo-dev 2006-09-26 19:32:24 UTC

*** This bug has been marked as a duplicate of 148720 ***