mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
anv: assert that color attachment are valid
This reverts commitd76e777988. Let's make this obvious that there is an application issue if it tries to access an attachment that doesn't exist in the current pass. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes:d76e777988("anv: Handle VK_ATTACHMENT_UNUSED in colorAttachment") Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
3c153b3982
commit
a934a3d124
1 changed files with 1 additions and 4 deletions
|
|
@ -1013,10 +1013,7 @@ clear_color_attachment(struct anv_cmd_buffer *cmd_buffer,
|
|||
{
|
||||
const struct anv_subpass *subpass = cmd_buffer->state.subpass;
|
||||
const uint32_t color_att = attachment->colorAttachment;
|
||||
|
||||
if (color_att == VK_ATTACHMENT_UNUSED)
|
||||
return;
|
||||
|
||||
assert(color_att < subpass->color_count);
|
||||
const uint32_t att_idx = subpass->color_attachments[color_att].attachment;
|
||||
|
||||
if (att_idx == VK_ATTACHMENT_UNUSED)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue