diff options
author | José Fonseca <[email protected]> | 2009-10-10 18:44:46 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-10-10 18:44:46 +0100 |
commit | 0177c6e66cfddeb62feca86e7bd5ae763b9b5244 (patch) | |
tree | b03991ce4fa6aac20e2dd44fc7f18b2b487f0a7d /src/gallium/drivers | |
parent | 7908c239e0fdc11d878b8c68d126c3364af0ee24 (diff) |
llvmpipe: Only invoke the shader if necessary.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_rast_tri.c | 3 |
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 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; |