zink: copy the non-dirty shader stages when updating gfx program

typo during refactoring

Fixes: d8455e5ebf ("zink: change u_foreach_bit to regular for loop in zink_gfx_program_update")

Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18786>
This commit is contained in:
Mike Blumenkrantz
2022-09-01 13:37:41 -04:00
committed by Marge Bot
parent 6df9bcaa10
commit 745efa1231
+1 -1
View File
@@ -423,7 +423,7 @@ zink_gfx_program_update(struct zink_context *ctx)
if (entry) {
prog = (struct zink_gfx_program*)entry->data;
for (unsigned i = 0; i < ZINK_GFX_SHADER_COUNT; i++) {
if (prog->stages_present & ctx->dirty_shader_stages & BITFIELD_BIT(i))
if (prog->stages_present & ~ctx->dirty_shader_stages & BITFIELD_BIT(i))
ctx->gfx_pipeline_state.modules[i] = prog->modules[i]->shader;
}
/* ensure variants are always updated if keys have changed since last use */