diff options
| author | Ian Elliott <ianelliott@google.com> | 2016-01-07 10:55:02 -0700 |
|---|---|---|
| committer | Mark Lobodzinski <mark@lunarg.com> | 2016-01-07 14:58:07 -0700 |
| commit | 8e61d24650c214daf20a07cb28a2cc4bec5e4717 (patch) | |
| tree | ddb7e24aa93dcdc29c2ae8fb16a1779993ad0450 | |
| parent | 50677ffc7f6bb42a399baf051d6fca3f507e5693 (diff) | |
| download | usermoji-8e61d24650c214daf20a07cb28a2cc4bec5e4717.tar.xz | |
swapchain: MR122, queueFamilyIndexCount must be > 1 for CONCURRENT
This was clarified via "<validity>" language in the "vk.xml" file. It is the
case for VkBufferCreateInfo::queueFamilyIndexCount, and MR 995 will make it
consistent for VkSwapchainCreateInfoKHR::queueFamilyIndexCount.
| -rw-r--r-- | layers/swapchain.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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, |
