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:
@@ -1563,8 +1563,8 @@ dzn_graphics_pipeline_translate_blend(struct dzn_graphics_pipeline *pipeline,
|
|||||||
|
|
||||||
for (uint32_t i = 0; i < in_blend->attachmentCount; i++) {
|
for (uint32_t i = 0; i < in_blend->attachmentCount; i++) {
|
||||||
if (i > 0 &&
|
if (i > 0 &&
|
||||||
!memcmp(&in_blend->pAttachments[i - 1], &in_blend->pAttachments[i],
|
memcmp(&in_blend->pAttachments[i - 1], &in_blend->pAttachments[i],
|
||||||
sizeof(*in_blend->pAttachments)))
|
sizeof(*in_blend->pAttachments)) != 0)
|
||||||
desc->IndependentBlendEnable = true;
|
desc->IndependentBlendEnable = true;
|
||||||
|
|
||||||
desc->RenderTarget[i].BlendEnable =
|
desc->RenderTarget[i].BlendEnable =
|
||||||
|
Reference in New Issue
Block a user