aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_setup_tri.c
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2009-10-21 15:21:11 +0100
committerKeith Whitwell <[email protected]>2009-10-21 15:21:11 +0100
commit694f05ac18c54253910678709f2dd35c36f1e912 (patch)
treeb31c2342f3985ce6e7fea13cda7d5199ab847b1d /src/gallium/drivers/llvmpipe/lp_setup_tri.c
parent341edde1d2e9f9f989d41869cc436b51942941e4 (diff)
llvmpipe: remove one of two definitions of TILESIZE
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_tri.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index 041716adc93..f2665c11df3 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -372,10 +372,10 @@ do_triangle_ccw(struct setup_context *setup,
}
}
- minx = tri->minx / TILESIZE;
- miny = tri->miny / TILESIZE;
- maxx = tri->maxx / TILESIZE;
- maxy = tri->maxy / TILESIZE;
+ minx = tri->minx / TILE_SIZE;
+ miny = tri->miny / TILE_SIZE;
+ maxx = tri->maxx / TILE_SIZE;
+ maxy = tri->maxy / TILE_SIZE;
/* Convert to tile coordinates:
@@ -390,14 +390,14 @@ do_triangle_ccw(struct setup_context *setup,
else
{
int c1 = (tri->c1 +
- tri->dx12 * miny * TILESIZE -
- tri->dy12 * minx * TILESIZE);
+ tri->dx12 * miny * TILE_SIZE -
+ tri->dy12 * minx * TILE_SIZE);
int c2 = (tri->c2 +
- tri->dx23 * miny * TILESIZE -
- tri->dy23 * minx * TILESIZE);
+ tri->dx23 * miny * TILE_SIZE -
+ tri->dy23 * minx * TILE_SIZE);
int c3 = (tri->c3 +
- tri->dx31 * miny * TILESIZE -
- tri->dy31 * minx * TILESIZE);
+ tri->dx31 * miny * TILE_SIZE -
+ tri->dy31 * minx * TILE_SIZE);
int ei1 = tri->ei1 << TILE_ORDER;
int ei2 = tri->ei2 << TILE_ORDER;