From 67203e1574f99dd3f811d9254f4cd4d733c1b3e9 Mon Sep 17 00:00:00 2001 From: Yahan Zhou Date: Wed, 24 Jan 2024 15:38:37 -0800 Subject: [PATCH] Add snasphot support for vk coherent memory This commit tracks more functions related to coherent memory snapshot and saves the memory content. At this point we are not sure if we need to manually copy the memory content, because they are supposed to be cloned in RAM snapshot. We could revert that part if they turn out to be unnecessary in future. Reviewed-by: Aaron Ruby Acked-by: Yonggang Luo Acked-by: Adam Jackson Part-of: --- src/gfxstream/codegen/scripts/cereal/decodersnapshot.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py index 4ff97a1d2c4..dcf8f0e4f0f 100644 --- a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py +++ b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py @@ -112,6 +112,7 @@ apiSequences = { apiModifies = { "vkMapMemoryIntoAddressSpaceGOOGLE" : ["memory"], + "vkGetBlobGOOGLE" : ["memory"], } def is_modify_operation(api, param): @@ -121,9 +122,6 @@ def is_modify_operation(api, param): return False def emit_impl(typeInfo, api, cgen): - - cgen.line("// TODO: Implement") - for p in api.parameters: if not (p.isHandleType): continue