From 7fc7916db5da17cb54667dcd1630eca9d58e860e Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 8 Jun 2016 09:51:34 +1200 Subject: layers: remove tracking of last queue and fence for CB Unused. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 4 ---- layers/core_validation_types.h | 2 -- 2 files changed, 6 deletions(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 949276b6..07f151db 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -3675,8 +3675,6 @@ static void resetCB(layer_data *dev_data, const VkCommandBuffer cb) { pCB->activeRenderPass = nullptr; pCB->activeSubpassContents = VK_SUBPASS_CONTENTS_INLINE; pCB->activeSubpass = 0; - pCB->lastSubmittedFence = VK_NULL_HANDLE; - pCB->lastSubmittedQueue = VK_NULL_HANDLE; pCB->destroyedSets.clear(); pCB->updatedSets.clear(); pCB->destroyedFramebuffers.clear(); @@ -4582,8 +4580,6 @@ QueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo *pSubmits, V if (pCBNode) { pCBNode->semaphores = semaphoreList; pCBNode->submitCount++; // increment submit count - pCBNode->lastSubmittedFence = fence; - pCBNode->lastSubmittedQueue = queue; skipCall |= validatePrimaryCommandBufferState(dev_data, pCBNode); // Call submit-time functions to validate/update state for (auto &function : pCBNode->validate_functions) { diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h index ce51dba4..7fef3e3c 100644 --- a/layers/core_validation_types.h +++ b/layers/core_validation_types.h @@ -441,8 +441,6 @@ struct GLOBAL_CB_NODE : public BASE_NODE { std::vector scissors; VkRenderPassBeginInfo activeRenderPassBeginInfo; uint64_t fenceId; - VkFence lastSubmittedFence; - VkQueue lastSubmittedQueue; RENDER_PASS_NODE *activeRenderPass; VkSubpassContents activeSubpassContents; uint32_t activeSubpass; -- cgit v1.2.3