llvmpipe: eliminate last usage of step array in rast_tmp.h
authorKeith Whitwell <keithw@vmware.com>
Sun, 15 Aug 2010 16:24:54 +0000 (17:24 +0100)
committerKeith Whitwell <keithw@vmware.com>
Sun, 15 Aug 2010 16:24:54 +0000 (17:24 +0100)
commit4c0641454b952f2c240de8c83511703f98e1f72f
tree94b5379a4308dbca9fcffa936b4ec23c2ca0530d
parentee0d1c29eeddfa364a18783507acd4d031029ba2
llvmpipe: eliminate last usage of step array in rast_tmp.h

For 16 and 64 pixel levels, calculate a mask which is linear in x and
y (ie not in the swizzle layout).

When iterating over full and partial masks, figure out position by
manipulating the bit number set in the mask, rather than relying on
postion arrays.

Similarly, calculate the lower-level c values from dcdx, dcdy and the
position rather than relying on the step array.
src/gallium/drivers/llvmpipe/lp_rast_tri.c
src/gallium/drivers/llvmpipe/lp_rast_tri_tmp.h