vkd3d-shader/dxil: Check for src param allocation failure in sm6_parser_emit_dx_load_input().

This commit is contained in:
Conor McCarthy 2024-02-14 00:11:55 +10:00 committed by Alexandre Julliard
parent eb1bfaa821
commit 6e3e200e96
Notes: Alexandre Julliard 2024-02-14 23:27:12 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Approved-by: Alexandre Julliard (@julliard)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/647

View File

@ -3967,7 +3967,8 @@ static void sm6_parser_emit_dx_load_input(struct sm6_parser *sm6, enum dx_intrin
}
e = &signature->elements[row_index];
src_param = instruction_src_params_alloc(ins, 1, sm6);
if (!(src_param = instruction_src_params_alloc(ins, 1, sm6)))
return;
src_param->reg = sm6->input_params[row_index].reg;
src_param_init_scalar(src_param, column_index);
if (e->register_count > 1)