[PATCH] radeon: avoid rounding errors in texture coords for textured xv

Michel Dänzer michel at daenzer.net
Mon Feb 20 01:59:21 PST 2012


On Sam, 2012-02-18 at 21:21 +0100, Roland Scheidegger wrote: 
> make sure the division is done with floats, otherwise the coordinate
> can be wrong up to 1 texel.
> Particularly visible with clipping and small source scaled up (since one
> texel can be a shift of several pixels) but could be seen even unscaled.
> Should provide more accurate coords without clipping too depending on the
> scale factor probably.
> Changed for r100-r600, though only tested on r300.

Reviewed-by: Michel Dänzer <michel at daenzer.net>

Can you push yourself?


-- 
Earthling Michel Dänzer           |                   http://www.amd.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-driver-ati mailing list