summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_state.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2010-06-24 04:43:40 +0200
committerMarek Olšák <[email protected]>2010-06-24 06:10:47 +0200
commit93bce03b275f66b6b2db410bbef38954de6a617c (patch)
tree417da865484de259a1aa6ee21d8b32ae6aaf979c /src/gallium/drivers/r300/r300_state.c
parenta2f14153cc2bcf0b2364e035dc788d65ea0fcd35 (diff)
r300g: separate the cache flush from the framebuffer state
Diffstat (limited to 'src/gallium/drivers/r300/r300_state.c')
-rw-r--r--src/gallium/drivers/r300/r300_state.c3
1 files changed, 2 insertions, 1 deletions
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);