vkd3d-shader/ir: Validate register counts in patch constant signatures.

This commit is contained in:
Giovanni Mascellani 2024-10-08 15:14:59 +02:00 committed by Henri Verbeet
parent a29270fa64
commit c3b31b96e1
Notes: Henri Verbeet 2024-10-09 13:19:13 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1159

View File

@ -7076,6 +7076,7 @@ enum vkd3d_result vsir_program_validate(struct vsir_program *program, uint64_t c
vsir_validate_signature(&ctx, &program->input_signature, "input");
vsir_validate_signature(&ctx, &program->output_signature, "output");
vsir_validate_signature(&ctx, &program->patch_constant_signature, "patch constant");
if (!(ctx.temps = vkd3d_calloc(ctx.program->temp_count, sizeof(*ctx.temps))))
goto fail;