diff options
author | Keith Whitwell <keithw@vmware.com> | 2009-10-20 03:17:17 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2009-10-20 03:17:17 +0100 |
commit | 7b116e13a2aa28a699e30c907c1b1ae5e04cab28 (patch) | |
tree | 320943f867e86141e55f0c058cc3b71970f21fd4 /src/gallium/drivers/llvmpipe/lp_setup_tri.c | |
parent | 7670628061c2a6ce0a1a787556b0e33a38fd3049 (diff) | |
download | external_mesa3d-7b116e13a2aa28a699e30c907c1b1ae5e04cab28.zip external_mesa3d-7b116e13a2aa28a699e30c907c1b1ae5e04cab28.tar.gz external_mesa3d-7b116e13a2aa28a699e30c907c1b1ae5e04cab28.tar.bz2 |
llvmpipe: pass mask as a linear encoding of the 4x4 block
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_tri.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_setup_tri.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c index a5a0407..cf8643f 100644 --- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c @@ -369,18 +369,13 @@ do_triangle_ccw(struct setup_context *setup, int ystep3 = tri->dx31; int ix, iy; - int qx, qy; int i = 0; - for (qy = 0; qy < 4; qy += 2) { - for (qx = 0; qx < 4; qx += 2) { - for (iy = 0; iy < 2; iy++) { - for (ix = 0; ix < 2; ix++, i++) { - tri->step[0][i] = (xstep1 * (qx+ix)) + (ystep1 * (qy+iy)); - tri->step[1][i] = (xstep2 * (qx+ix)) + (ystep2 * (qy+iy)); - tri->step[2][i] = (xstep3 * (qx+ix)) + (ystep3 * (qy+iy)); - } - } + for (iy = 0; iy < 4; iy++) { + for (ix = 0; ix < 4; ix++, i++) { + tri->step[0][i] = xstep1 * ix + ystep1 * iy; + tri->step[1][i] = xstep2 * ix + ystep2 * iy; + tri->step[2][i] = xstep3 * ix + ystep3 * iy; } } } |