diff options
author | Brian Paul <[email protected]> | 2010-01-19 09:30:44 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-01-19 09:30:44 -0700 |
commit | 0fccfc9cc0cb7699598f1739d8cd3811175cdf13 (patch) | |
tree | fa0d781620bb39546c7a2568923e7a57a47d1de8 /src/gallium/drivers/llvmpipe | |
parent | 75f262b8b441e05f5b8811db1c205220200d64ad (diff) |
llvmpipe: remove unneeded DEBUG checks, use step var
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 440bb322358..5fe939d234b 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -461,7 +461,6 @@ void lp_rast_shade_quads( struct lp_rasterizer *rast, } -#ifdef DEBUG /** * Set top row and left column of the tile's pixels to white. For debugging. */ @@ -483,10 +482,8 @@ outline_tile(uint8_t *tile) TILE_PIXEL(tile, 0, i, 3) = val; } } -#endif /* DEBUG */ -#ifdef DEBUG /** * Draw grid of gray lines at 16-pixel intervals across the tile to * show the sub-tile boundaries. For debugging. @@ -498,7 +495,7 @@ outline_subtiles(uint8_t *tile) const unsigned step = 16; unsigned i, j; - for (i = 0; i < TILE_SIZE; i += 16) { + for (i = 0; i < TILE_SIZE; i += step) { for (j = 0; j < TILE_SIZE; j++) { TILE_PIXEL(tile, i, j, 0) = val; TILE_PIXEL(tile, i, j, 1) = val; @@ -514,7 +511,6 @@ outline_subtiles(uint8_t *tile) outline_tile(tile); } -#endif /* DEBUG */ |