dzn: Fix independent blend check

Memcmp returns 0 on equal, so !memcmp means equal.

Fixes: c92729c3 ("dzn: Enable independent blending")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20823>
This commit is contained in:
Jesse Natalie
2023-01-20 16:48:27 -08:00
committed by Marge Bot
parent 602a54a083
commit 3f0bbb19de

View File

@@ -1563,8 +1563,8 @@ dzn_graphics_pipeline_translate_blend(struct dzn_graphics_pipeline *pipeline,
for (uint32_t i = 0; i < in_blend->attachmentCount; i++) {
if (i > 0 &&
!memcmp(&in_blend->pAttachments[i - 1], &in_blend->pAttachments[i],
sizeof(*in_blend->pAttachments)))
memcmp(&in_blend->pAttachments[i - 1], &in_blend->pAttachments[i],
sizeof(*in_blend->pAttachments)) != 0)
desc->IndependentBlendEnable = true;
desc->RenderTarget[i].BlendEnable =