r300g: fix updating the tiling flags for the framebuffer state
authorMarek Olšák <maraeo@gmail.com>
Mon, 8 Mar 2010 03:38:16 +0000 (04:38 +0100)
committerMarek Olšák <maraeo@gmail.com>
Mon, 8 Mar 2010 03:43:51 +0000 (04:43 +0100)
src/gallium/drivers/r300/r300_state.c

index 31259b557fc717a824a8a688b20ea18243c7036e..8c9f6046228810a0da00dc405ab61e355b394b8f 100644 (file)
@@ -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)) {