diff options
author | Eric Anholt <[email protected]> | 2015-01-11 14:52:26 +1300 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2015-01-11 17:17:20 +1300 |
commit | 1a328120d334ae09fa6a1ce8b599174f730a9753 (patch) | |
tree | 467363a40f8e817b983c9baa9c1200ceda55f030 /src/gallium/drivers/vc4/vc4_program.c | |
parent | c1226629846613f9442e5fc5ad9be305176a4f0f (diff) |
vc4: Fix up statechange management for uncompiled/compiled FS/VS.
No need to recheck the FS compile when the VS source has changed, but
there *is* a need to recheck the VS compile when the compiled VS has
changed (since the live inputs may change).
Fixes es3conform's blend test.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_program.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_program.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c index 581b9400957..2ab7da90dd7 100644 --- a/src/gallium/drivers/vc4/vc4_program.c +++ b/src/gallium/drivers/vc4/vc4_program.c @@ -2364,7 +2364,7 @@ vc4_update_compiled_fs(struct vc4_context *vc4, uint8_t prim_mode) VC4_DIRTY_RASTERIZER | VC4_DIRTY_FRAGTEX | VC4_DIRTY_TEXSTATE | - VC4_DIRTY_PROG))) { + VC4_DIRTY_UNCOMPILED_FS))) { return; } @@ -2408,6 +2408,7 @@ vc4_update_compiled_fs(struct vc4_context *vc4, uint8_t prim_mode) if (vc4->prog.fs == old_fs) return; + vc4->dirty |= VC4_DIRTY_COMPILED_FS; if (vc4->rasterizer->base.flatshade && old_fs && vc4->prog.fs->color_inputs != old_fs->color_inputs) { vc4->dirty |= VC4_DIRTY_FLAT_SHADE_FLAGS; @@ -2425,7 +2426,8 @@ vc4_update_compiled_vs(struct vc4_context *vc4, uint8_t prim_mode) VC4_DIRTY_VERTTEX | VC4_DIRTY_TEXSTATE | VC4_DIRTY_VTXSTATE | - VC4_DIRTY_PROG))) { + VC4_DIRTY_UNCOMPILED_VS | + VC4_DIRTY_COMPILED_FS))) { return; } @@ -2814,8 +2816,7 @@ vc4_fp_state_bind(struct pipe_context *pctx, void *hwcso) { struct vc4_context *vc4 = vc4_context(pctx); vc4->prog.bind_fs = hwcso; - vc4->prog.dirty |= VC4_SHADER_DIRTY_FP; - vc4->dirty |= VC4_DIRTY_PROG; + vc4->dirty |= VC4_DIRTY_UNCOMPILED_FS; } static void @@ -2823,8 +2824,7 @@ vc4_vp_state_bind(struct pipe_context *pctx, void *hwcso) { struct vc4_context *vc4 = vc4_context(pctx); vc4->prog.bind_vs = hwcso; - vc4->prog.dirty |= VC4_SHADER_DIRTY_VP; - vc4->dirty |= VC4_DIRTY_PROG; + vc4->dirty |= VC4_DIRTY_UNCOMPILED_VS; } void |