Shawn Starr wrote:
> The Fedora people have been hanging on to a patch for Mesa since
> 6.4.1 for the r300, I am currently using this patch without issue
> (for all the latest compiz stuff). Is there a reason this isn't in
> 6.5.x yet?
> -                     return do32bpt ? _dri_texformat_rgba8888 :
 > +                    return do32bpt ? _dri_texformat_argb8888 :
What is the reason this is needed? The chip and driver can handle both 
formats, and the driver is free to choose an internal representation. 
The exact same code can be found in other drivers (radeon, r200 at 
least). I think rgba8888 is chosen instead of argb8888 because of the 
lower cost converting a given texture to the internal format (because it 
probably already is in rgba8888 format).
Since you're mentioning compiz, does it need to match the screen format? 
It does not seem to be possible to specify that a supplied texture is in 
ARGB format (which could be used to determine if internal format of 
rgba888 or argb8888 would be "better"), though bgra is possible, which 
is kinda the same after endian swapping.

Roland


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to