From eeb35923793a40a9fbd516806398c08a0f97fd95 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Tue, 25 Nov 2025 23:35:19 +0100 Subject: [PATCH] vkd3d-shader/dxil: Handle allocation failure in sm6_parser_emit_atomicrmw(). --- libs/vkd3d-shader/dxil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/dxil.c b/libs/vkd3d-shader/dxil.c index 632cc9529..b68e1fac8 100644 --- a/libs/vkd3d-shader/dxil.c +++ b/libs/vkd3d-shader/dxil.c @@ -4662,7 +4662,8 @@ static void sm6_parser_emit_atomicrmw(struct sm6_parser *sm6, struct function_em sm6_parser_init_ssa_value(sm6, dst); - dst_params = instruction_dst_params_alloc(ins, 2, sm6); + if (!(dst_params = instruction_dst_params_alloc(ins, 2, sm6))) + return; vsir_register_from_dxil_value(&dst_params[0].reg, dst, 0, sm6); dst_param_init(&dst_params[0]);