anv: fix anv_is_dual_src_blend_equation

Fixes new tests: dEQP-VK.pipeline.*.blend.dual_source.undefined_output.second*

Cc: mesa-stable
Signed-off-by: Iván Briano <ivan.briano@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
(cherry picked from commit 2ce8a9e1be)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40752>
This commit is contained in:
Iván Briano 2026-03-11 14:35:09 -07:00 committed by Eric Engestrom
parent 2953656a39
commit 3794d34ad4
2 changed files with 4 additions and 4 deletions

View file

@ -5454,7 +5454,7 @@
"description": "anv: fix anv_is_dual_src_blend_equation",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -545,9 +545,9 @@ anv_is_dual_src_blend_factor(VkBlendFactor factor)
static inline bool
anv_is_dual_src_blend_equation(const struct vk_color_blend_attachment_state *cb)
{
return anv_is_dual_src_blend_factor(cb->src_color_blend_factor) &&
anv_is_dual_src_blend_factor(cb->dst_color_blend_factor) &&
anv_is_dual_src_blend_factor(cb->src_alpha_blend_factor) &&
return anv_is_dual_src_blend_factor(cb->src_color_blend_factor) ||
anv_is_dual_src_blend_factor(cb->dst_color_blend_factor) ||
anv_is_dual_src_blend_factor(cb->src_alpha_blend_factor) ||
anv_is_dual_src_blend_factor(cb->dst_alpha_blend_factor);
}