pvr: don't csb emit multi-layer clear attachments without rta support

Deferred clears are a way to turn clear operations into transfer operations.
One use of them is to account for multi-layer clears when the HW doesn't
support render targets array.

Fix for deqp:
  dEQP-VK.renderpass.dedicated_allocation.attachment_allocation*

Fixes: 9582058 ("pvr: Add deferred RTA clears for cores without gs_rta_support")

Signed-off-by: Luigi Santivetti <luigi.santivetti@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Luigi Santivetti 2024-10-22 12:35:38 +01:00 committed by Marge Bot
parent 4927d2274c
commit d68344bffe

View file

@ -2102,8 +2102,7 @@ static void pvr_clear_attachments(struct pvr_cmd_buffer *cmd_buffer,
if (result != VK_SUCCESS)
return;
if (clear_rect->baseArrayLayer != 0)
continue;
continue;
}
/* TODO: Allocate all the buffers in one go before the loop, and add