Mesa (main): zink: fix dual_src_blend driconf workaround

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 22 03:27:14 UTC 2022


Module: Mesa
Branch: main
Commit: e8fc5cca9039e7d4ea08cc6d99fe9c4f8cc49f8b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8fc5cca9039e7d4ea08cc6d99fe9c4f8cc49f8b

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Mon Jun 20 21:31:31 2022 -0400

zink: fix dual_src_blend driconf workaround

not sure when this broke but it broke

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17156>

---

 src/gallium/drivers/zink/zink_state.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/zink/zink_state.c b/src/gallium/drivers/zink/zink_state.c
index c6c19602c78..941b281d0f6 100644
--- a/src/gallium/drivers/zink/zink_state.c
+++ b/src/gallium/drivers/zink/zink_state.c
@@ -421,7 +421,7 @@ zink_bind_blend_state(struct pipe_context *pctx, void *cso)
       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[1].blendEnable;
+                                    blend && blend->dual_src_blend && state->blend_state->attachments[0].blendEnable;
       if (force_dual_color_blend != zink_get_fs_key(ctx)->force_dual_color_blend)
          zink_set_fs_key(ctx)->force_dual_color_blend = force_dual_color_blend;
       ctx->blend_state_changed = true;



More information about the mesa-commit mailing list