lavapipe: ignore unused clearvalues when beginning renderpass

according to spec, unused clearvalues aren't accessed

> Only elements corresponding to cleared attachments are used. Other elements of pClearValues are ignored.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9900>
This commit is contained in:
Mike Blumenkrantz 2021-03-29 11:04:39 -04:00 committed by Marge Bot
parent 61cf77583a
commit ee8ea0cf86

View file

@ -339,7 +339,7 @@ state_setup_attachments(struct lvp_attachment_state *attachments,
}
}
attachments[i].pending_clear_aspects = clear_aspects;
if (clear_values)
if (clear_aspects)
attachments[i].clear_value = clear_values[i];
}
}