From 6eeb64c7daa1dec8a3fdc4eed0d8f852eb9f69ae Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 11 May 2017 10:37:24 -0700 Subject: 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. --- layers/descriptor_sets.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'layers/descriptor_sets.cpp') 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) { -- cgit v1.2.3