From 464c2e35b8ddb655de49c9f1d1880e342f51c055 Mon Sep 17 00:00:00 2001 From: Bo Hu Date: Wed, 7 May 2025 14:42:08 -0700 Subject: [PATCH] gfxstream:: update code gen for vkResetCommandPool Reviewed-by: Marcin Radomski Part-of: --- src/gfxstream/codegen/scripts/cereal/decodersnapshot.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py index 14227df1679..5493d8a8ee6 100644 --- a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py +++ b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py @@ -300,6 +300,11 @@ def api_special_implementation_vkCmdBindVertexBuffers(api, cgen): cgen.endFor() +def api_special_implementation_vkResetCommandPool(api, cgen): + cgen.line("// Note: special implementation"); + cgen.stmt("std::lock_guard lock(mReconstructionMutex)") + cgen.stmt("mReconstruction.removeGrandChildren((uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkCommandPool(commandPool))") + def api_special_implementation_vkResetCommandBuffer(api, cgen): cgen.line("// Note: special implementation"); cgen.stmt("std::lock_guard lock(mReconstructionMutex)") @@ -339,6 +344,7 @@ apiSpecialImplementation = { "vkGetBlobGOOGLE": api_special_implementation_vkMapMemoryIntoAddressSpaceGOOGLE, "vkQueueFlushCommandsGOOGLE": api_special_implementation_vkQueueFlushCommandsGOOGLE, "vkResetCommandBuffer": api_special_implementation_vkResetCommandBuffer, + "vkResetCommandPool": api_special_implementation_vkResetCommandPool, "vkCmdBindVertexBuffers": api_special_implementation_vkCmdBindVertexBuffers, "vkCmdCopyBufferToImage": api_special_implementation_vkCmdCopyBufferToImage, "vkCmdPipelineBarrier": api_special_implementation_vkCmdPipelineBarrier,