diff options
author | Marek Olšák <maraeo@gmail.com> | 2010-03-08 04:38:16 +0100 |
---|---|---|
committer | Marek Olšák <maraeo@gmail.com> | 2010-03-08 04:43:51 +0100 |
commit | 9860f652e271d03672ec3e5f0e379170953a1e56 (patch) | |
tree | 981d741c5b16e042eeee09c5310d7298b16c5699 | |
parent | 6abe6145fb3b642fc2ae1d6ad2cc9de045efe0cb (diff) |
r300g: fix updating the tiling flags for the framebuffer state
-rw-r--r-- | src/gallium/drivers/r300/r300_state.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/r300/r300_state.c b/src/gallium/drivers/r300/r300_state.c index 31259b557f..8c9f604622 100644 --- a/src/gallium/drivers/r300/r300_state.c +++ b/src/gallium/drivers/r300/r300_state.c @@ -614,14 +614,13 @@ static void r300->scissor_state.dirty = TRUE; } + r300_fb_update_tiling_flags(r300, r300->fb_state.state, state); + memcpy(r300->fb_state.state, state, sizeof(struct pipe_framebuffer_state)); r300->fb_state.size = (10 * state->nr_cbufs) + (2 * (4 - state->nr_cbufs)) + (state->zsbuf ? 10 : 0) + 8; - r300_fb_update_tiling_flags(r300, r300->fb_state.state, state); - - /* Polygon offset depends on the zbuffer bit depth. */ if (state->zsbuf && r300->polygon_offset_enabled) { switch (util_format_get_blocksize(state->zsbuf->texture->format)) { |