From 99f9a7589e0d430793a71065309908c9dc216f85 Mon Sep 17 00:00:00 2001 From: Michael Lentine Date: Thu, 21 Jul 2016 17:24:56 -0500 Subject: layers: GH722 Add query function calls from secondary buffers. --- layers/core_validation.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'layers/core_validation.cpp') 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()"); -- cgit v1.2.3