mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
anv: disallow VK_REMAINING_ARRAY_LAYERS in vkCmdClearAttachments()
Vulkan spec doesn't specify that VK_REMAINING_ARRAY_LAYERS is allowed in the passed VkClearRect struct. Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
0cf6320eb5
commit
a31f0c4a36
1 changed files with 2 additions and 0 deletions
|
|
@ -989,6 +989,7 @@ clear_color_attachment(struct anv_cmd_buffer *cmd_buffer,
|
|||
for (uint32_t r = 0; r < rectCount; ++r) {
|
||||
const VkOffset2D offset = pRects[r].rect.offset;
|
||||
const VkExtent2D extent = pRects[r].rect.extent;
|
||||
assert(pRects[r].layerCount != VK_REMAINING_ARRAY_LAYERS);
|
||||
blorp_clear_attachments(batch, binding_table,
|
||||
ISL_FORMAT_UNSUPPORTED, pass_att->samples,
|
||||
pRects[r].baseArrayLayer,
|
||||
|
|
@ -1060,6 +1061,7 @@ clear_depth_stencil_attachment(struct anv_cmd_buffer *cmd_buffer,
|
|||
const VkOffset2D offset = pRects[r].rect.offset;
|
||||
const VkExtent2D extent = pRects[r].rect.extent;
|
||||
VkClearDepthStencilValue value = attachment->clearValue.depthStencil;
|
||||
assert(pRects[r].layerCount != VK_REMAINING_ARRAY_LAYERS);
|
||||
blorp_clear_attachments(batch, binding_table,
|
||||
depth_format, pass_att->samples,
|
||||
pRects[r].baseArrayLayer,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue