Module: Mesa Branch: lp-binning Commit: 73e13c33fd0a9b8574d00d01d301b9d4f88d4051 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=73e13c33fd0a9b8574d00d01d301b9d4f88d4051
Author: Brian Paul <[email protected]> Date: Mon Dec 7 18:18:37 2009 -0700 llvmpipe: remove some left-over debug code --- src/gallium/drivers/llvmpipe/lp_rast.c | 9 +++------ 1 files changed, 3 insertions(+), 6 deletions(-) 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); _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
