From a7708c0a9cd69f21595b1776cc00da1cf4045b8e Mon Sep 17 00:00:00 2001 From: Tobin Ehlis Date: Wed, 13 Apr 2016 14:36:16 -0600 Subject: Revert "layers: LX459,GH#99,#100, Fix semaphore reference count" This reverts commit 541bb5afc50581e7c765fc5c05400540369f0044. Reverting this as the original issue is still present and being worked on so restoring original state until correct fix is complete. --- layers/core_validation.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'layers/core_validation.cpp') diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 666f58da..7103b384 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -5105,10 +5105,10 @@ vkQueueSubmit(VkQueue queue, uint32_t submitCount, const VkSubmitInfo *pSubmits, vector semaphoreList; for (uint32_t i = 0; i < submit->waitSemaphoreCount; ++i) { const VkSemaphore &semaphore = submit->pWaitSemaphores[i]; + semaphoreList.push_back(semaphore); if (dev_data->semaphoreMap.find(semaphore) != dev_data->semaphoreMap.end()) { if (dev_data->semaphoreMap[semaphore].signaled) { dev_data->semaphoreMap[semaphore].signaled = false; - dev_data->semaphoreMap[semaphore].in_use.fetch_sub(1); } else { skipCall |= log_msg(dev_data->report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_SEMAPHORE_EXT, @@ -10359,7 +10359,6 @@ VKAPI_ATTR VkResult VKAPI_CALL vkAcquireNextImageKHR(VkDevice device, VkSwapchai "vkAcquireNextImageKHR: Semaphore must not be currently signaled or in a wait state"); } dev_data->semaphoreMap[semaphore].signaled = true; - dev_data->semaphoreMap[semaphore].in_use.fetch_add(1); } auto fence_data = dev_data->fenceMap.find(fence); if (fence_data != dev_data->fenceMap.end()) { -- cgit v1.2.3