summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/softpipe/sp_quad_blend.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-07-24 18:17:05 +0100
committerKeith Whitwell <keithw@vmware.com>2009-07-24 18:17:05 +0100
commita1dbd7aa159e266592a1e52504680992327ca9e0 (patch)
tree3656902d68d0b46052e9fa0f6ffc92d1efef2a6d /src/gallium/drivers/softpipe/sp_quad_blend.c
parentab9fb5167023a26566b53e98f206dd73a18000f3 (diff)
softpipe: actually pass >1 quad from triangle routine
First attempt
Diffstat (limited to 'src/gallium/drivers/softpipe/sp_quad_blend.c')
-rw-r--r--src/gallium/drivers/softpipe/sp_quad_blend.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/gallium/drivers/softpipe/sp_quad_blend.c b/src/gallium/drivers/softpipe/sp_quad_blend.c
index fdf1bb4552..8ef8666c0e 100644
--- a/src/gallium/drivers/softpipe/sp_quad_blend.c
+++ b/src/gallium/drivers/softpipe/sp_quad_blend.c
@@ -123,10 +123,6 @@ logicop_quad(struct quad_stage *qs,
{
struct softpipe_context *softpipe = qs->softpipe;
uint cbuf;
- struct softpipe_cached_tile *
- tile = sp_get_cached_tile(softpipe->cbuf_cache[cbuf],
- quads[0]->input.x0,
- quads[0]->input.y0);
/* loop over colorbuffer outputs */
for (cbuf = 0; cbuf < softpipe->framebuffer.nr_cbufs; cbuf++) {
@@ -137,6 +133,11 @@ logicop_quad(struct quad_stage *qs,
uint *res4 = (uint *) res;
uint i, j;
+ struct softpipe_cached_tile *
+ tile = sp_get_cached_tile(softpipe->cbuf_cache[cbuf],
+ quads[0]->input.x0,
+ quads[0]->input.y0);
+
for (i = 0; i < nr; i++) {
struct quad_header *quad = quads[i];
float (*quadColor)[4] = quad->output.color[cbuf];