diff options
Diffstat (limited to 'src/vulkan/anv_meta_clear.c')
-rw-r--r-- | src/vulkan/anv_meta_clear.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/vulkan/anv_meta_clear.c b/src/vulkan/anv_meta_clear.c index 003e0e023ca..0469c57dabf 100644 --- a/src/vulkan/anv_meta_clear.c +++ b/src/vulkan/anv_meta_clear.c @@ -781,10 +781,7 @@ void anv_CmdClearColorImage( .layout = VK_IMAGE_LAYOUT_GENERAL, }, .preserveAttachmentCount = 1, - .pPreserveAttachments = &(VkAttachmentReference) { - .attachment = 0, - .layout = VK_IMAGE_LAYOUT_GENERAL, - }, + .pPreserveAttachments = (uint32_t[]) { 0 }, }, .dependencyCount = 0, }, &cmd_buffer->pool->alloc, &pass); |