From 0177c6e66cfddeb62feca86e7bd5ae763b9b5244 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Sat, 10 Oct 2009 18:44:46 +0100 Subject: llvmpipe: Only invoke the shader if necessary. --- src/gallium/drivers/llvmpipe/lp_rast_tri.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium') 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; -- cgit v1.2.3