From ab71a5e4c918eee19b518603a2db11d2793b2c91 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 24 Feb 2010 13:23:10 -0700 Subject: [PATCH] llvmpipe: added some assertions --- src/gallium/drivers/llvmpipe/lp_rast_tri.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.30.2