diff options
author | Brian Paul <[email protected]> | 2010-02-24 13:23:10 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2010-02-24 13:54:25 -0700 |
commit | ab71a5e4c918eee19b518603a2db11d2793b2c91 (patch) | |
tree | 47795f3f455d20ed213c0b6c98fac81ece576dde /src/gallium/drivers/llvmpipe | |
parent | f272a780af92d7aeff085ad5c968c5ca1d157113 (diff) |
llvmpipe: added some assertions
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast_tri.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c index 0334705ef79..bbc95c399a0 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c @@ -130,6 +130,9 @@ do_block_4( struct lp_rasterizer_task *rast_task, int c2, int c3 ) { + assert(x >= 0); + assert(y >= 0); + lp_rast_shade_quads(rast_task->rast, rast_task->thread_index, &tri->inputs, @@ -155,6 +158,8 @@ do_block_16( struct lp_rasterizer_task *rast_task, int c[3]; int i, j; + assert(x >= 0); + assert(y >= 0); assert(x % 16 == 0); assert(y % 16 == 0); |