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)