This is intended to help correcting issues with ati cards. If you don't have issues, then you don't need those.
If you are using XGL, you don't need anything (the above options might even hinder the 3d)
Something from the Compiz site that deserves a prominent place on this forum (Thanks to Djdoo). Some of these items might be difficult to implement so please inquire before trying if you are not sure.
Well, since AMD-ATI finally changed it's policy and gave us a usable 3D - AIGLX enabled new code base driver I decided to make a guide in order to help our new friends to make their ATI card AIGLX-Compiz Fusion capable!
First of all you must have installed FGLRX driver from version 8.42 and later... Be Careful! Numbers are now the same with windoze drivers!
Grab the latest one from synaptic (you can check your card prefered driver at
http://ati.amd.com/support/driver.html. The synaptic driver is the exact same only preset for pclinuxos).
Let's start... Add the following options for each case:
Under Section "ServerLayout":
Option "AIGLX" "on" ->Enables Xorg's AIGLX rendering technic
Under Section "Device":
Option "XAANoOffscreenPixmaps" "True" ->This one IS absolutely NEEDED! It shouldn't be missed!
Option "TexturedVideo" "True" ->New!! Plays accelerated video! Important!
Option "TexturedVideoSync" "True" -> Synchronizes Textured Video
Option "Textured2D" "True" ->Experimental! See Note 1...
Option "TexturedXrender" "True" ->Experimental! See Note 2...
Option "UseFastTLS" "2" ->Sincerely I don't know what this one does but it is suggested by a lot of people...
Option "BackingStore" "True" ->Helps alot. See Note 3...
Option "MaxGARTSize" "000" ->For PCI-Express cards it sets the amount of VRAM to be allocated by the driver. "000"=Put your amount of VRAM here. See Note 4...
Under Section "Screen":
DefaultDepth 24
Under Section "DRI":
Mode 0666
Under Section "Extensions": ->See Note 5 for details...
Option "RENDER" "Enable"
Option "DAMAGE" "Enable"
Option "Composite" "Enable"
Option "XVideo" "Enable"
NOTES:
Note 1:
Textured2D option utilizes a new 2D acceleration mechanism of the driver which really boosts up 2D performance and behaviour! It also loads GLESX module. (I have seen a 9550 old Radeon easily overcome at 2D performance my X1250 with this option!)
Very important when works cause it solves the slow scrolling problem every ATI user faces when use Compiz-Fusion with AIGLX and fglrx driver. BE CAREFUL with that! It is a hidden option and it may NOT work with all ATI cards! If you cannot connect to X xerver or face strange colours just commend it out at xorg.conf or set it to "False" But Try it! Really worths checking!
Note 2:
TexturedXRender option gives the Textured2D mechanism the ability to use the advanced features that Xorg's RENDER extension provides and really make things even better for 2D visuals!
Note 3:
Backing Store option engages an Xorg's mechanism which stores graphics that have been rendered and so the card doesn't have to re-render the same things. BUT it can cause screen artifacts if you don't use Compiz-Fusion.
Note 4:
If there is a stupid driver in the graphics market this one is certainly fglrx...
I mean that at PCI Express cards the driver always allocates 256MB of VideoRAM at it's GART, no matter if the card has a different amount of VRAM!
I faced it myself, my card happens to have shared VRAM so I can choose the amount via BIOS settings. Whatever amount I set in BIOS fglrx would always allocate 256MB...
Until I used this option! So I set in BIOS 512MB and wrote the option like that:
Option "MaxGARTSize" "512"
And wow fglrx now is allocating 512MB! The strange thing was that Catalyst Control Center was reporting the correct amount of VRAM but fglrx was allocating 256MB before I used the option.
And believe me now the card works much better..! If you check your xorg.0.log file at the GART memory lines you will find the problem.
Note 5:
The first extension must be enabled to be used with the Textured options.
The 2 following ones are needed for getting Compiz-Fusion working.
The last one is used to enable XV video. (Video playback with Compiz-Fusion enabled is still a problem, at least for windowed mode).
Note 6:
If you want to have fast fullscreen 3D and good fullscreen video you must check the box at CompizConfigSettingsManager->General Options->Unredirect Fullscreen Windows But be careful cause in some 3D games your mouse pointer may stop function!! No problem in RACER, but pointer doesn't work in Sauerbraten and Neverball.
Note 7:
If you cannot startup Compiz and the output says no FBconfig setup this isn't going to work or something like that make sure you add this --no-libgl-fallback at startup command.
You can try using the following command to start Compiz
compiz --replace --ignore-desktop-hints --no-libgl-fallback --sm-disable ccp