what is the effect of RADEON_ALIGN (macros) in ATI-driver?

Tomas Carnecky tom at dbservice.com
Wed Aug 11 03:23:21 PDT 2010


On 8/11/10 12:03 PM, Cui, Hunk wrote:
> 	But I'm confused by the code, not really sure of the calculate:
> YDstPitch = (width + 31) & ~31; & UVDstPitch = ((width >> 1) + 15) &
> ~15;

'(variable + X) & ~X' is a common idiom to align the variable to the
next multiple of (X+1).

tom



More information about the xorg-devel mailing list