freedreno: move fb state copy after checking for size change
authorIlia Mirkin <imirkin@alum.mit.edu>
Tue, 3 Mar 2015 02:22:27 +0000 (21:22 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 9 Mar 2015 14:50:39 +0000 (10:50 -0400)
Fixes: 1f3ca56b ("freedreno: use util_copy_framebuffer_state()")
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Rob Clark <robclark@freedesktop.org>
Cc: "10.4 10.5" <mesa-stable@lists.freedesktop.org>
src/gallium/drivers/freedreno/freedreno_state.c

index 6293f439125a876ce3d8db496d519afebaef8b03..77aa4f21d3bd51f3decbf002ddd75134b736a28c 100644 (file)
@@ -123,12 +123,12 @@ fd_set_framebuffer_state(struct pipe_context *pctx,
 
        fd_context_render(pctx);
 
-       util_copy_framebuffer_state(cso, framebuffer);
-
        if ((cso->width != framebuffer->width) ||
                        (cso->height != framebuffer->height))
                ctx->needs_rb_fbd = true;
 
+       util_copy_framebuffer_state(cso, framebuffer);
+
        ctx->dirty |= FD_DIRTY_FRAMEBUFFER;
 
        ctx->disabled_scissor.minx = 0;