diff options
| author | Tobin Ehlis <tobine@google.com> | 2016-04-13 14:36:16 -0600 |
|---|---|---|
| committer | Tobin Ehlis <tobine@google.com> | 2016-04-13 14:37:05 -0600 |
| commit | a7708c0a9cd69f21595b1776cc00da1cf4045b8e (patch) | |
| tree | e61e6947d3107eaf88c0cda9945023a2e33b8c80 /layers/core_validation.cpp | |
| parent | a88b108a32dfb1c94ee14baf1e27a16284c1bec1 (diff) | |
| download | usermoji-a7708c0a9cd69f21595b1776cc00da1cf4045b8e.tar.xz | |
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.
Diffstat (limited to 'layers/core_validation.cpp')
| -rw-r--r-- | layers/core_validation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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<VkSemaphore> 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()) { |
