From: Brian Paul Date: Tue, 8 Dec 2009 01:18:37 +0000 (-0700) Subject: llvmpipe: remove some left-over debug code X-Git-Tag: 062012170305~14503^2~153 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=73e13c33fd0a9b8574d00d01d301b9d4f88d4051;p=profile%2Fivi%2Fmesa.git llvmpipe: remove some left-over debug code --- diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c index 99f7108..01685b7 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast.c +++ b/src/gallium/drivers/llvmpipe/lp_rast.c @@ -402,12 +402,9 @@ static void lp_rast_store_color( struct lp_rasterizer *rast, if (x + w > rast->width) w -= x + w - rast->width; - if (y + h > rast->height) { - int h2; - h2 = h - (y + h - rast->height); - assert(h2 <= TILE_SIZE); - h = h2; - } + if (y + h > rast->height) + h -= y + h - rast->height; + assert(w >= 0); assert(h >= 0); assert(w <= TILE_SIZE);