aboutsummaryrefslogtreecommitdiff
path: root/layers/mem_tracker.cpp
diff options
context:
space:
mode:
authorMike Stroyan <mike@LunarG.com>2015-04-15 15:37:47 -0600
committerChia-I Wu <olv@lunarg.com>2015-04-16 17:48:20 +0800
commit594b9b073a9822953293cba0aa7ccd91a2ec0a46 (patch)
tree92f0c4a5cf493c352145625881941af3e9c68947 /layers/mem_tracker.cpp
parent42a078dd1f61f895c0be38972154181a33d920b4 (diff)
downloadusermoji-594b9b073a9822953293cba0aa7ccd91a2ec0a46.tar.xz
layers: memtracker - waiting on only some fences
Record correctly when only some fences of a queue are waited for.
Diffstat (limited to 'layers/mem_tracker.cpp')
-rw-r--r--layers/mem_tracker.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/layers/mem_tracker.cpp b/layers/mem_tracker.cpp
index 3dc04124..967272a4 100644
--- a/layers/mem_tracker.cpp
+++ b/layers/mem_tracker.cpp
@@ -185,13 +185,15 @@ static void updateFenceTracking(VkFence fence)
MT_FENCE_INFO *pCurFenceInfo = NULL;
uint64_t fenceId = 0;
VkQueue queue = NULL;
+ bool found = false;
- for (map<uint64_t, MT_FENCE_INFO*>::iterator ii=fenceMap.begin(); ii!=fenceMap.end(); ++ii) {
+ for (map<uint64_t, MT_FENCE_INFO*>::iterator ii=fenceMap.begin(); !found && ii!=fenceMap.end(); ++ii) {
if ((*ii).second != NULL) {
if (fence == ((*ii).second)->fence) {
queue = ((*ii).second)->queue;
MT_QUEUE_INFO *pQueueInfo = queueMap[queue];
pQueueInfo->lastRetiredId = (*ii).first;
+ found = true;
} else {
deleteFenceInfo((*ii).first);
}