diff options
author | Tony-LunarG <tony@lunarg.com> | 2018-05-30 11:33:19 -0600 |
---|---|---|
committer | Tony-LunarG <tony@lunarg.com> | 2018-05-31 13:20:37 -0600 |
commit | a141b962624829204fd4ccaad99a10858aec4eae (patch) | |
tree | 0b4809faa04097f9c1d301441ce3f037c863c2b3 | |
parent | b7940409945face40657080b6074fc5588a0c0ad (diff) | |
download | Vulkan-Tools-a141b962624829204fd4ccaad99a10858aec4eae.tar.gz Vulkan-Tools-a141b962624829204fd4ccaad99a10858aec4eae.tar.bz2 Vulkan-Tools-a141b962624829204fd4ccaad99a10858aec4eae.zip |
cube: Explicitly set QueueFamilyIndex(s) to QUEUE_FAMILY_IGNORED
The QueueFamilyIndex fields only come into play when you want
to use an image in two or more queues from different queue
families, which cube does not do.
Change-Id: I610aa8899539eeb25ca06254b88e6a6d0a2ffc97
-rw-r--r-- | cube/cube.c | 2 | ||||
-rw-r--r-- | cube/cube.cpp | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/cube/cube.c b/cube/cube.c index f54887aa..f1f00ec9 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -657,6 +657,8 @@ static void demo_set_image_layout(struct demo *demo, VkImage image, VkImageAspec .pNext = NULL, .srcAccessMask = srcAccessMask, .dstAccessMask = 0, + .srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, + .dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED, .oldLayout = old_image_layout, .newLayout = new_image_layout, .image = image, diff --git a/cube/cube.cpp b/cube/cube.cpp index 9973fa0c..6aa66722 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -2273,8 +2273,8 @@ void Demo::set_image_layout(vk::Image image, vk::ImageAspectFlags aspectMask, vk .setDstAccessMask(DstAccessMask(newLayout)) .setOldLayout(oldLayout) .setNewLayout(newLayout) - .setSrcQueueFamilyIndex(0) - .setDstQueueFamilyIndex(0) + .setSrcQueueFamilyIndex(VK_QUEUE_FAMILY_IGNORED) + .setDstQueueFamilyIndex(VK_QUEUE_FAMILY_IGNORED) .setImage(image) .setSubresourceRange(vk::ImageSubresourceRange(aspectMask, 0, 1, 0, 1)); |