From 93bce03b275f66b6b2db410bbef38954de6a617c Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Thu, 24 Jun 2010 04:43:40 +0200 Subject: r300g: separate the cache flush from the framebuffer state --- src/gallium/drivers/r300/r300_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gallium/drivers/r300/r300_state.c') diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 247a590da51..f2534e473da 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -686,6 +686,7 @@ static void draw_flush(r300->draw); } + r300->gpu_flush.dirty = TRUE; r300->fb_state.dirty = TRUE; /* If nr_cbufs is changed from zero to non-zero or vice versa... */ @@ -703,7 +704,7 @@ static void memcpy(r300->fb_state.state, state, sizeof(struct pipe_framebuffer_state)); r300->fb_state.size = - 16 + + 7 + (8 * state->nr_cbufs) + (state->zsbuf ? (r300->screen->caps.has_hiz ? 22 : 18) : 0); -- cgit v1.2.3