From f3dfe6513c26d1ce50b3b0fc830d4d8ff7f6b922 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Mon, 2 Mar 2015 21:22:27 -0500 Subject: [PATCH] freedreno: move fb state copy after checking for size change Fixes: 1f3ca56b ("freedreno: use util_copy_framebuffer_state()") Signed-off-by: Ilia Mirkin Reviewed-by: Rob Clark Cc: "10.4 10.5" --- src/gallium/drivers/freedreno/freedreno_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/freedreno/freedreno_state.c b/src/gallium/drivers/freedreno/freedreno_state.c index 6293f439125..77aa4f21d3b 100644 --- a/src/gallium/drivers/freedreno/freedreno_state.c +++ b/src/gallium/drivers/freedreno/freedreno_state.c @@ -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; -- 2.30.2