summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_rast_tri.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-12-01 16:00:04 -0700
committerBrian Paul <brianp@vmware.com>2009-12-01 16:00:08 -0700
commit938acf0367416c989d49f231da855ba6ea8d64ca (patch)
tree72f303e462fb3d598d5b960465bf0a35468d95a0 /src/gallium/drivers/llvmpipe/lp_rast_tri.c
parent63b1f23b3eb6fceaff7c2ceed925ef57f63f9fa2 (diff)
llvmpipe: make nr_blocks unsigned
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast_tri.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast_tri.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 428870bb04..07b0eccf1e 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
@@ -44,7 +44,7 @@
static void
block_full_4( struct lp_rasterizer *rast, int x, int y )
{
- int i = rast->nr_blocks;
+ const unsigned i = rast->nr_blocks;
assert(x % 4 == 0);
assert(y % 4 == 0);
rast->blocks[i].x = x;
@@ -97,7 +97,7 @@ do_block_4( struct lp_rasterizer *rast,
/* As we do trivial reject already, masks should rarely be all zero:
*/
if (mask) {
- int i = rast->nr_blocks;
+ const unsigned i = rast->nr_blocks;
rast->blocks[i].x = x;
rast->blocks[i].y = y;
rast->blocks[i].mask = mask;
@@ -169,7 +169,8 @@ lp_rast_triangle( struct lp_rasterizer *rast,
int x = rast->x;
int y = rast->y;
- int ix, iy, i = 0;
+ int ix, iy;
+ unsigned i = 0;
int c1 = tri->c1 + tri->dx12 * y - tri->dy12 * x;
int c2 = tri->c2 + tri->dx23 * y - tri->dy23 * x;