From a141b962624829204fd4ccaad99a10858aec4eae Mon Sep 17 00:00:00 2001 From: Tony-LunarG Date: Wed, 30 May 2018 11:33:19 -0600 Subject: 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 --- cube/cube.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cube/cube.c') 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, -- cgit v1.2.3