[Freedreno] [PATCH] freedreno: move fb state copy after checking for size change
Ilia Mirkin
imirkin at alum.mit.edu
Mon Mar 2 18:24:36 PST 2015
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
Untested. But it seems pretty obvious.
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 6293f43..77aa4f2 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.0.5
More information about the Freedreno
mailing list