aboutsummaryrefslogtreecommitdiff
path: root/layers/core_validation.cpp
diff options
context:
space:
mode:
authorMichael Lentine <mlentine@google.com>2016-07-21 17:24:56 -0500
committerTobin Ehlis <tobine@google.com>2016-07-29 09:46:45 -0600
commit99f9a7589e0d430793a71065309908c9dc216f85 (patch)
tree1c0aa85f595fe924aa60376c1e6e95b7d08958de /layers/core_validation.cpp
parent7b71e4f4d0fd918ce33a39041673cde143e2fbc9 (diff)
downloadusermoji-99f9a7589e0d430793a71065309908c9dc216f85.tar.xz
layers: GH722 Add query function calls from secondary buffers.
Diffstat (limited to 'layers/core_validation.cpp')
-rw-r--r--layers/core_validation.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp
index 159f848f..030f42c6 100644
--- a/layers/core_validation.cpp
+++ b/layers/core_validation.cpp
@@ -9937,6 +9937,9 @@ CmdExecuteCommands(VkCommandBuffer commandBuffer, uint32_t commandBuffersCount,
pSubCB->primaryCommandBuffer = pCB->commandBuffer;
pCB->secondaryCommandBuffers.insert(pSubCB->commandBuffer);
dev_data->globalInFlightCmdBuffers.insert(pSubCB->commandBuffer);
+ for (auto &function : pSubCB->queryUpdates) {
+ pCB->queryUpdates.push_back(function);
+ }
}
skip_call |= validatePrimaryCommandBuffer(dev_data, pCB, "vkCmdExecuteComands");
skip_call |= addCmd(dev_data, pCB, CMD_EXECUTECOMMANDS, "vkCmdExecuteComands()");