diff options
author | José Fonseca <[email protected]> | 2009-08-18 12:57:16 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2009-08-29 09:21:34 +0100 |
commit | 3014919211b361817c5365f7cbb8d2ef8ca61234 (patch) | |
tree | a192d357bff387f2369633831c8b7d75f33659e9 /src/gallium/drivers/llvmpipe/lp_quad_fs.c | |
parent | efab431684bb17459073f6a2e96044cb2ebd2524 (diff) |
llvmpipe: Rasterize the quads according to what the blend function expects.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_quad_fs.c')
-rw-r--r-- | src/gallium/drivers/llvmpipe/lp_quad_fs.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_quad_fs.c b/src/gallium/drivers/llvmpipe/lp_quad_fs.c index c428987a7d4..1c440318729 100644 --- a/src/gallium/drivers/llvmpipe/lp_quad_fs.c +++ b/src/gallium/drivers/llvmpipe/lp_quad_fs.c @@ -204,17 +204,20 @@ shade_quads(struct quad_stage *qs, unsigned i, pass = 0; for (i = 0; i < nr; i++) { + if(!quads[i]->inout.mask) + continue; + if (!shade_quad(qs, quads[i])) continue; if (/*do_coverage*/ 0) coverage_quad( qs, quads[i] ); - quads[pass++] = quads[i]; + ++pass; } if (pass) - qs->next->run(qs->next, quads, pass); + qs->next->run(qs->next, quads, nr); } |