From d828ad1968bcf6c242343f8ec4ada7a842f820b4 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 16 Jun 2016 17:16:00 +1200 Subject: layers: Get rid of fence->swapchain link Nothing used this after rationalizing the state tracking. Change-Id: I67cc267336b5d64bea9645a8e0a072885db58c26 Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 1 - layers/core_validation.h | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index b9c6be77..3cdedc6d 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -9999,7 +9999,6 @@ VKAPI_ATTR VkResult VKAPI_CALL AcquireNextImageKHR(VkDevice device, VkSwapchainK if (result == VK_SUCCESS || result == VK_SUBOPTIMAL_KHR) { if (pFence) { pFence->state = FENCE_INFLIGHT; - pFence->swapchain = swapchain; } // A successful call to AcquireNextImageKHR counts as a signal operation on semaphore diff --git a/layers/core_validation.h b/layers/core_validation.h index 6cc6272d..451d6b65 100644 --- a/layers/core_validation.h +++ b/layers/core_validation.h @@ -213,7 +213,6 @@ enum FENCE_STATE { FENCE_UNSIGNALED, FENCE_INFLIGHT, FENCE_RETIRED }; class FENCE_NODE { public: VkFence fence; - VkSwapchainKHR swapchain; // Swapchain that this fence is submitted against or NULL VkFenceCreateInfo createInfo; std::unordered_set queues; std::vector submissions; @@ -221,7 +220,7 @@ class FENCE_NODE { FENCE_STATE state; // Default constructor - FENCE_NODE() : swapchain(VK_NULL_HANDLE), state(FENCE_UNSIGNALED) {} + FENCE_NODE() : state(FENCE_UNSIGNALED) {} }; class SEMAPHORE_NODE : public BASE_NODE { -- cgit v1.2.3