summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_state.c
diff options
context:
space:
mode:
authorJerome Glisse <[email protected]>2010-09-26 16:25:47 -0400
committerJerome Glisse <[email protected]>2010-09-26 16:29:33 -0400
commit4ca1a92b7fe44158a13910d01c76f41f6946165c (patch)
tree2618b3d0f92e77d8c7f82a97e64be1b9a876e44e /src/gallium/drivers/r600/r600_state.c
parent16baa465a249cc9a382fa2834ec6133561d0a562 (diff)
r600g: move around variables to share depth uncompression code
Signed-off-by: Jerome Glisse <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_state.c')
-rw-r--r--src/gallium/drivers/r600/r600_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state.c b/src/gallium/drivers/r600/r600_state.c
index 424f7a8913f..791b39a001e 100644
--- a/src/gallium/drivers/r600/r600_state.c
+++ b/src/gallium/drivers/r600/r600_state.c
@@ -389,7 +389,7 @@ static void r600_set_framebuffer_state(struct pipe_context *ctx,
}
clean_flush(rctx, &rctx->hw_states.cb_flush);
clean_flush(rctx, &rctx->hw_states.db_flush);
-
+ rctx->pframebuffer = NULL;
r600_context_state_decref(rctx->framebuffer);
rstate = r600_new_context_state(pipe_framebuffer_type);
@@ -399,6 +399,7 @@ static void r600_set_framebuffer_state(struct pipe_context *ctx,
}
pipe_reference(NULL, &state->zsbuf->reference);
rctx->framebuffer = rstate;
+ rctx->pframebuffer = &rstate->state.framebuffer;
for (i = 0; i < state->nr_cbufs; i++) {
rctx->vtbl->cb(rctx, &rstate->rstate[i+1], state, i);
}