From: Marek Olšák Date: Mon, 8 Mar 2010 03:38:16 +0000 (+0100) Subject: r300g: fix updating the tiling flags for the framebuffer state X-Git-Tag: mesa-7.9-rc1~4598^2~44^2~27 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9860f652e271d03672ec3e5f0e379170953a1e56;p=platform%2Fupstream%2Fmesa.git r300g: fix updating the tiling flags for the framebuffer state --- 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)) {