vkd3d-shader/dxil: Handle allocation failure in sm6_parser_emit_atomicrmw().

This commit is contained in:
Giovanni Mascellani
2025-11-25 23:35:19 +01:00
committed by Henri Verbeet
parent 9457dc9c75
commit eeb3592379
Notes: Henri Verbeet 2025-12-02 14:37:33 +01:00
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1839

View File

@@ -4662,7 +4662,8 @@ static void sm6_parser_emit_atomicrmw(struct sm6_parser *sm6, struct function_em
sm6_parser_init_ssa_value(sm6, dst); 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); vsir_register_from_dxil_value(&dst_params[0].reg, dst, 0, sm6);
dst_param_init(&dst_params[0]); dst_param_init(&dst_params[0]);