zink: unset last_vertex_stage_dirty after applying it
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Tue, 16 Mar 2021 19:57:52 +0000 (15:57 -0400)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Mar 2021 21:29:09 +0000 (21:29 +0000)
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 <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9633>

src/gallium/drivers/zink/zink_draw.c

index 5f5703a..6e7e0cd 100644 (file)
@@ -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,