Mesa (master): r300g: fix updating the tiling flags for the framebuffer state

Marek Olšák mareko at kemper.freedesktop.org
Sun Mar 7 19:44:23 PST 2010


Module: Mesa
Branch: master
Commit: 9860f652e271d03672ec3e5f0e379170953a1e56
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9860f652e271d03672ec3e5f0e379170953a1e56

Author: Marek Olšák <maraeo at gmail.com>
Date:   Mon Mar  8 04:38:16 2010 +0100

r300g: fix updating the tiling flags for the framebuffer state

---

 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 31259b5..8c9f604 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)) {



More information about the mesa-commit mailing list