iris: correct dst alpha blend factor in Wa_14018912822

Fixes: 0e9a26372b ("iris: implement Wa_14018912822")
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25424>
This commit is contained in:
Tapani Pälli 2023-09-27 11:54:26 +03:00 committed by Marge Bot
parent 6ea2ea0bb0
commit ebe95fee21

View file

@ -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)];