mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-18 00:20:27 +01:00
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:
parent
61cf77583a
commit
ee8ea0cf86
1 changed files with 1 additions and 1 deletions
|
|
@ -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];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue