From 4b063d636e2f5a0d39da5a08227b7c9ad04e61c7 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 16 Mar 2021 15:57:52 -0400 Subject: [PATCH] zink: unset last_vertex_stage_dirty after applying it turns out that having extra flags for stuff isn't that useful if you never reset them Fixes: 9b8c121917d ("zink: flag shaders as needing update when clip_halfz changes") Reviewed-by: Erik Faye-Lund Part-of: --- src/gallium/drivers/zink/zink_draw.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/zink/zink_draw.c b/src/gallium/drivers/zink/zink_draw.c index 5f5703ad925..6e7e0cd3b22 100644 --- a/src/gallium/drivers/zink/zink_draw.c +++ b/src/gallium/drivers/zink/zink_draw.c @@ -262,6 +262,7 @@ get_gfx_program(struct zink_context *ctx) ctx->dirty_shader_stages |= BITFIELD_BIT(PIPE_SHADER_TESS_EVAL); else ctx->dirty_shader_stages |= BITFIELD_BIT(PIPE_SHADER_VERTEX); + ctx->last_vertex_stage_dirty = false; } if (ctx->dirty_shader_stages) { struct hash_entry *entry = _mesa_hash_table_search(ctx->program_cache,