diff options
| author | Chris Forbes <chrisforbes@google.com> | 2017-05-11 10:37:24 -0700 |
|---|---|---|
| committer | Chris Forbes <chrisf@ijw.co.nz> | 2017-05-17 08:26:30 -0700 |
| commit | 6eeb64c7daa1dec8a3fdc4eed0d8f852eb9f69ae (patch) | |
| tree | af85de2b7bf0bf60ecd14ec83aeff66d76f1f107 /layers/descriptor_sets.cpp | |
| parent | 426b861904f891570ba5f01a6ca8d8199666a12f (diff) | |
| download | usermoji-6eeb64c7daa1dec8a3fdc4eed0d8f852eb9f69ae.tar.xz | |
layers: Remove swapchain image special case from ValidateBarriers
Swapchain images have been added to the images table for a long time.
The checks below were also inconsistent about using the extracted data
or just going to image_data.
Diffstat (limited to 'layers/descriptor_sets.cpp')
| -rw-r--r-- | layers/descriptor_sets.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/layers/descriptor_sets.cpp b/layers/descriptor_sets.cpp index c36831a3..88d44e67 100644 --- a/layers/descriptor_sets.cpp +++ b/layers/descriptor_sets.cpp @@ -787,15 +787,6 @@ bool cvdescriptorset::ValidateImageUpdate(VkImageView image_view, VkImageLayout *error_msg = "No memory bound to image."; return false; } - } else { - // Also need to check the swapchains. - auto swapchain = GetSwapchainFromImage(dev_data, image); - if (swapchain) { - auto swapchain_node = GetSwapchainNode(dev_data, swapchain); - if (swapchain_node) { - format = swapchain_node->createInfo.imageFormat; - } - } } // First validate that format and layout are compatible if (format == VK_FORMAT_MAX_ENUM) { |
