From 8e61d24650c214daf20a07cb28a2cc4bec5e4717 Mon Sep 17 00:00:00 2001 From: Ian Elliott Date: Thu, 7 Jan 2016 10:55:02 -0700 Subject: swapchain: MR122, queueFamilyIndexCount must be > 1 for CONCURRENT This was clarified via "" language in the "vk.xml" file. It is the case for VkBufferCreateInfo::queueFamilyIndexCount, and MR 995 will make it consistent for VkSwapchainCreateInfoKHR::queueFamilyIndexCount. --- layers/swapchain.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layers/swapchain.cpp b/layers/swapchain.cpp index 4f70f3e8..9b573a91 100644 --- a/layers/swapchain.cpp +++ b/layers/swapchain.cpp @@ -1464,7 +1464,7 @@ static VkBool32 validateCreateSwapchainKHR( // Validate pCreateInfo->imageSharingMode and related values: if (pCreateInfo->imageSharingMode == VK_SHARING_MODE_CONCURRENT) { - if ((pCreateInfo->queueFamilyIndexCount < 1) || + if ((pCreateInfo->queueFamilyIndexCount <= 1) || !pCreateInfo->pQueueFamilyIndices) { skipCall |= LOG_ERROR(VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device, "VkDevice", SWAPCHAIN_CREATE_SWAP_BAD_SHARING_VALUES, -- cgit v1.2.3