From b95132460601b415ea378ec3fc3d3063f063899e Mon Sep 17 00:00:00 2001 From: Bo Hu Date: Mon, 19 May 2025 08:57:51 -0700 Subject: [PATCH] gfxstream: [vulkan snapshot]: update codegen to handle failed api calls Reviewed-by: Marcin Radomski Part-of: --- src/gfxstream/codegen/scripts/cereal/decodersnapshot.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py index 12f8a5d5145..9316743b3bc 100644 --- a/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py +++ b/src/gfxstream/codegen/scripts/cereal/decodersnapshot.py @@ -444,6 +444,7 @@ def emit_impl(typeInfo, api, cgen): boxed_access = "&boxed_%s" % p.typeName if p.pointerIndirectionLevels > 0: cgen.stmt("if (!%s) return" % access) + cgen.stmt("if (input_result != VK_SUCCESS) return") cgen.stmt("std::lock_guard lock(mReconstructionMutex)") cgen.line("// %s create" % p.paramName)