Mesa (master): vc4: Actually clear the context's dirty flags.

Eric Anholt anholt at kemper.freedesktop.org
Fri Oct 10 13:55:18 UTC 2014


Module: Mesa
Branch: master
Commit: c6f50c4086a96c3a8d84522ed7ee5c75a8b0868c
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6f50c4086a96c3a8d84522ed7ee5c75a8b0868c

Author: Eric Anholt <eric at anholt.net>
Date:   Fri Oct 10 14:24:06 2014 +0200

vc4: Actually clear the context's dirty flags.

I was trying to skip state updates when !dirty, and suspiciously
everything was always dirty.

---

 src/gallium/drivers/vc4/vc4_draw.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 2cac7ef..bc08da3 100644
--- a/src/gallium/drivers/vc4/vc4_draw.c
+++ b/src/gallium/drivers/vc4/vc4_draw.c
@@ -103,6 +103,7 @@ vc4_draw_vbo(struct pipe_context *pctx, const struct pipe_draw_info *info)
         vc4_update_compiled_shaders(vc4, info->mode);
 
         vc4_emit_state(pctx);
+        vc4->dirty = 0;
 
         vc4_write_uniforms(vc4, vc4->prog.fs,
                            &vc4->constbuf[PIPE_SHADER_FRAGMENT],




More information about the mesa-commit mailing list