From 9d7cfa74ea05b82310bf89b2dec24782e04f0fb9 Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Fri, 10 Jun 2016 15:22:37 +1200 Subject: layers: Add members to FENCE_NODE and QUEUE_NODE to hold the handles We'd like to be able to get back to them from the tracking struct. Signed-off-by: Chris Forbes --- layers/core_validation.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 1ebd4a51..7dbbd343 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -4841,6 +4841,7 @@ VKAPI_ATTR void VKAPI_CALL GetDeviceQueue(VkDevice device, uint32_t queueFamilyI auto result = dev_data->queues.emplace(*pQueue); if (result.second == true) { QUEUE_NODE *pQNode = &dev_data->queueMap[*pQueue]; + pQNode->queue = *pQueue; pQNode->device = device; } } @@ -5593,6 +5594,7 @@ CreateFence(VkDevice device, const VkFenceCreateInfo *pCreateInfo, const VkAlloc if (VK_SUCCESS == result) { std::lock_guard lock(global_lock); auto &fence_node = dev_data->fenceMap[*pFence]; + fence_node.fence = *pFence; fence_node.createInfo = *pCreateInfo; fence_node.needsSignaled = true; if (pCreateInfo->flags & VK_FENCE_CREATE_SIGNALED_BIT) { -- cgit v1.2.3