From ebe95fee21ccb506a6e08f179068ef44f9a7e1f4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Wed, 27 Sep 2023 11:54:26 +0300 Subject: [PATCH] iris: correct dst alpha blend factor in Wa_14018912822 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes: 0e9a26372bb4 ("iris: implement Wa_14018912822") Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- src/gallium/drivers/iris/iris_state.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index 7a40805..03e32a6 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -6582,7 +6582,7 @@ iris_upload_dirty_render_state(struct iris_context *ice, color_blend_zero = true; } if (dst_alpha_blend_factor == BLENDFACTOR_ZERO) { - dst_alpha_blend_factor = BLENDFACTOR_CONST_COLOR; + dst_alpha_blend_factor = BLENDFACTOR_CONST_ALPHA; alpha_blend_zero = true; } } @@ -7205,7 +7205,7 @@ iris_upload_dirty_render_state(struct iris_context *ice, if (ice->state.color_blend_zero) dst_blend_factor = BLENDFACTOR_CONST_COLOR; if (ice->state.alpha_blend_zero) - dst_alpha_blend_factor = BLENDFACTOR_CONST_COLOR; + dst_alpha_blend_factor = BLENDFACTOR_CONST_ALPHA; } uint32_t dynamic_pb[GENX(3DSTATE_PS_BLEND_length)]; -- 2.7.4