Mesa (lp-binning): llvmpipe: Only invoke the shader if necessary.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Tue Oct 13 12:42:34 UTC 2009
Module: Mesa
Branch: lp-binning
Commit: 0177c6e66cfddeb62feca86e7bd5ae763b9b5244
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=0177c6e66cfddeb62feca86e7bd5ae763b9b5244
Author: José Fonseca <jfonseca at vmware.com>
Date: Sat Oct 10 18:44:46 2009 +0100
llvmpipe: Only invoke the shader if necessary.
---
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 6b5bee4..f096972 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;
More information about the mesa-commit
mailing list