From 0c1390acfbbd10d1090f9d3613cec41725cddb72 Mon Sep 17 00:00:00 2001 From: Bo Hu Date: Thu, 12 Jun 2025 15:00:15 -0700 Subject: [PATCH] gfxstream: [vulkan snapshot]: update codegen for vkCmdCopyImageToBuffer 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 0d8095fc828..8a169049aaf 100644 --- a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py +++ b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py @@ -321,6 +321,11 @@ def api_special_implementation_vkCmdCopyBufferToImage(api, cgen): cgen.stmt("mReconstruction.addApiCallDependencyOnVkObject(apiCallHandle, (uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkBuffer(srcBuffer))") cgen.stmt("mReconstruction.addApiCallDependencyOnVkObject(apiCallHandle, (uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkImage(dstImage))") +def api_special_implementation_vkCmdCopyImageToBuffer(api, cgen): + cgen.stmt("std::lock_guard lock(mReconstructionMutex)") + cgen.stmt("mReconstruction.addApiCallDependencyOnVkObject(apiCallHandle, (uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkImage(srcImage))") + cgen.stmt("mReconstruction.addApiCallDependencyOnVkObject(apiCallHandle, (uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkBuffer(dstBuffer))") + def api_special_implementation_vkCmdCopyBuffer(api, cgen): cgen.stmt("std::lock_guard lock(mReconstructionMutex)") cgen.stmt("mReconstruction.addApiCallDependencyOnVkObject(apiCallHandle, (uint64_t)(uintptr_t)unboxed_to_boxed_non_dispatchable_VkBuffer(srcBuffer))") @@ -385,6 +390,7 @@ apiSpecialImplementation = { "vkCmdBindVertexBuffers": api_special_implementation_vkCmdBindVertexBuffers, "vkCmdBindPipeline": api_special_implementation_vkCmdBindPipeline, "vkCmdCopyBufferToImage": api_special_implementation_vkCmdCopyBufferToImage, + "vkCmdCopyImageToBuffer": api_special_implementation_vkCmdCopyImageToBuffer, "vkCmdCopyBuffer": api_special_implementation_vkCmdCopyBuffer, "vkCmdPipelineBarrier": api_special_implementation_vkCmdPipelineBarrier, "vkCmdBeginRenderPass": api_special_implementation_vkCmdBeginRenderPass,