From 4340dfb400f489a2d5c753e82133525e91e4aa92 Mon Sep 17 00:00:00 2001 From: Bo Hu Date: Wed, 14 May 2025 14:30:25 -0700 Subject: [PATCH] gfxstream: [vulkan snapshot]: update codegen for vkCmdBindPipeline Reviewed-by: Marcin Radomski Part-of: --- src/gfxstream/codegen/scripts/cereal/decodersnapshot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py index 4c29d23e464..863ccc4a226 100644 --- a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py +++ b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py @@ -297,6 +297,9 @@ def api_special_implementation_vkCmdBindVertexBuffers(api, cgen): cgen.stmt("apiCallInfo->depends.push_back( (uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkBuffer(pBuffers[i]))") cgen.endFor() +def api_special_implementation_vkCmdBindPipeline(api, cgen): + cgen.stmt("std::lock_guard lock(mReconstructionMutex)") + cgen.stmt("apiCallInfo->depends.push_back( (uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkPipeline(pipeline))") def api_special_implementation_vkResetCommandPool(api, cgen): cgen.line("// Note: special implementation"); @@ -344,6 +347,7 @@ apiSpecialImplementation = { "vkResetCommandBuffer": api_special_implementation_vkResetCommandBuffer, "vkResetCommandPool": api_special_implementation_vkResetCommandPool, "vkCmdBindVertexBuffers": api_special_implementation_vkCmdBindVertexBuffers, + "vkCmdBindPipeline": api_special_implementation_vkCmdBindPipeline, "vkCmdCopyBufferToImage": api_special_implementation_vkCmdCopyBufferToImage, "vkCmdPipelineBarrier": api_special_implementation_vkCmdPipelineBarrier, "vkCmdBeginRenderPass": api_special_implementation_vkCmdBeginRenderPass,