From: Tapani Pälli Date: Wed, 27 Sep 2023 08:54:26 +0000 (+0300) Subject: iris: correct dst alpha blend factor in Wa_14018912822 X-Git-Tag: upstream/23.3.3~1387 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebe95fee21ccb506a6e08f179068ef44f9a7e1f4;p=platform%2Fupstream%2Fmesa.git iris: correct dst alpha blend factor in Wa_14018912822 Fixes: 0e9a26372bb4 ("iris: implement Wa_14018912822") Signed-off-by: Tapani Pälli Reviewed-by: Lionel Landwerlin Part-of: --- 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)];