aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorTobin Ehlis <tobine@google.com>2018-02-26 10:55:57 -0700
committerChris Forbes <chrisf@ijw.co.nz>2018-02-27 13:55:58 -0800
commitf846e216f89b5f6ac6d40ee86d25007a0ed87399 (patch)
treec49cd6dacc130542b8f877ef49e5ffb43b3c2ba2 /layers/core_validation.cpp
parent9a0c5bfb6a873e82cb8074dd9026e70b14376722 (diff)
downloadusermoji-f846e216f89b5f6ac6d40ee86d25007a0ed87399.tar.xz
layers:Merge common loops
Can increment resources for secondary command buffers in the same loop where image layouts are updated.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index d5668a72..e34f0cc9 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -2816,12 +2816,10 @@ static void PostCallRecordQueueSubmit(layer_data *dev_data, VkQueue queue, uint3
for (auto secondaryCmdBuffer : cb_node->linkedCommandBuffers) {
cbs.push_back(secondaryCmdBuffer->commandBuffer);
UpdateCmdBufImageLayouts(dev_data, secondaryCmdBuffer);
+ incrementResources(dev_data, secondaryCmdBuffer);
}
UpdateCmdBufImageLayouts(dev_data, cb_node);
incrementResources(dev_data, cb_node);
- for (auto secondaryCmdBuffer : cb_node->linkedCommandBuffers) {
- incrementResources(dev_data, secondaryCmdBuffer);
- }
}
}
pQueue->submissions.emplace_back(cbs, semaphore_waits, semaphore_signals, semaphore_externals,