summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc4/vc4_draw.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2014-10-10 14:24:06 +0200
committerEric Anholt <[email protected]>2014-10-10 15:03:13 +0200
commitc6f50c4086a96c3a8d84522ed7ee5c75a8b0868c (patch)
treec28452ee10fb0b52ff1a951b07caeb454826d078 /src/gallium/drivers/vc4/vc4_draw.c
parent7c474f9f2e5e3161ad27129844139ee14d916726 (diff)
vc4: Actually clear the context's dirty flags.
I was trying to skip state updates when !dirty, and suspiciously everything was always dirty.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_draw.c')
-rw-r--r--src/gallium/drivers/vc4/vc4_draw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_draw.c b/src/gallium/drivers/vc4/vc4_draw.c
index 2cac7efb620..bc08da3734c 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],