From 3ca3a26f9cd49e53635dd971c9a64fd5ddbb23dc Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 7 Feb 2023 11:13:17 -0500 Subject: [PATCH] zink: don't set blend_id with full_ds3 this no longer needs to be part of the pso hash Reviewed-by: Emma Anholt Part-of: --- src/gallium/drivers/zink/zink_state.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c index f7ae7e031e4..46614751df1 100644 --- a/src/gallium/drivers/zink/zink_state.c +++ b/src/gallium/drivers/zink/zink_state.c @@ -407,8 +407,10 @@ zink_bind_blend_state(struct pipe_context *pctx, void *cso) if (state->blend_state != cso) { state->blend_state = cso; - state->blend_id = blend ? blend->hash : 0; - state->dirty |= !zink_screen(pctx->screen)->have_full_ds3; + if (!zink_screen(pctx->screen)->have_full_ds3) { + state->blend_id = blend ? blend->hash : 0; + state->dirty = true; + } bool force_dual_color_blend = zink_screen(pctx->screen)->driconf.dual_color_blend_by_location && blend && blend->dual_src_blend && state->blend_state->attachments[0].blendEnable; if (force_dual_color_blend != zink_get_fs_base_key(ctx)->force_dual_color_blend)