From: José Fonseca Date: Sat, 10 Oct 2009 17:44:46 +0000 (+0100) Subject: llvmpipe: Only invoke the shader if necessary. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0177c6e66cfddeb62feca86e7bd5ae763b9b5244;p=mesa.git llvmpipe: Only invoke the shader if necessary. --- diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c index 6b5bee4af3c..f096972d638 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_tri.c +++ b/src/gallium/drivers/llvmpipe/lp_rast_tri.c @@ -140,7 +140,8 @@ do_block( struct lp_rasterizer *rast, cx3 += xstep3; } - lp_rast_shade_quads(rast, &tri->inputs, x, y + iy, masks); + if(masks[0] || masks[1] || masks[2] || masks[3]) + lp_rast_shade_quads(rast, &tri->inputs, x, y + iy, masks); c1 += ystep1; c2 += ystep2;