summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vulkan/anv_dump.c')
-rw-r--r--src/vulkan/anv_dump.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/vulkan/anv_dump.c b/src/vulkan/anv_dump.c
index 4db7c2539e1..3a1430d49a0 100644
--- a/src/vulkan/anv_dump.c
+++ b/src/vulkan/anv_dump.c
@@ -161,8 +161,12 @@ anv_dump_image_to_ppm(struct anv_device *device,
}, NULL, &fence);
assert(result == VK_SUCCESS);
- result = anv_QueueSubmit(anv_queue_to_handle(&device->queue),
- 1, &cmd, fence);
+ result = anv_QueueSubmit(anv_queue_to_handle(&device->queue), 1,
+ &(VkSubmitInfo) {
+ .sType = VK_STRUCTURE_TYPE_SUBMIT_INFO,
+ .commandBufferCount = 1,
+ .pCommandBuffers = &cmd,
+ }, fence);
assert(result == VK_SUCCESS);
result = anv_WaitForFences(vk_device, 1, &fence, true, UINT64_MAX);