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

Roland Scheidegger rscheidegger_lists at hispeed.ch
Mon Feb 20 06:26:37 PST 2012


Am 20.02.2012 10:59, schrieb Michel Dänzer:
> 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?

Yes, pushed (though forgot to add your Reviewed-by, ah well...)

Roland


More information about the xorg-driver-ati mailing list