From 3014919211b361817c5365f7cbb8d2ef8ca61234 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Tue, 18 Aug 2009 12:57:16 +0100 Subject: llvmpipe: Rasterize the quads according to what the blend function expects. --- src/gallium/drivers/llvmpipe/lp_quad_fs.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gallium/drivers/llvmpipe/lp_quad_fs.c') diff --git a/src/gallium/drivers/llvmpipe/lp_quad_fs.c b/src/gallium/drivers/llvmpipe/lp_quad_fs.c index c428987a7d..1c44031872 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); } -- cgit v1.2.3