summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast_tri.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri.c b/src/gallium/drivers/llvmpipe/lp_rast_tri.c
index 6b5bee4af3..f096972d63 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;