summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_meta_clear.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-01-14 07:29:58 -0800
committerJason Ekstrand <[email protected]>2016-01-14 07:30:46 -0800
commit7b81637762268f94bdf0576ca83bb2e6896b3565 (patch)
tree2440e1da6c655a750ceea8c1157f9db73075f9a1 /src/vulkan/anv_meta_clear.c
parent802f00219addb31d6e8b73c818c42212406993eb (diff)
vulkan-1.0.0: Convert pPreserveAttachments to a uint32_t
Diffstat (limited to 'src/vulkan/anv_meta_clear.c')
-rw-r--r--src/vulkan/anv_meta_clear.c5
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);