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

This commit is contained in:
Giovanni Mascellani 2024-10-08 15:14:20 +02:00 committed by Henri Verbeet
parent 118f494de3
commit a29270fa64
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

@ -7075,6 +7075,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->input_signature, "input");
vsir_validate_signature(&ctx, &program->output_signature, "output");
if (!(ctx.temps = vkd3d_calloc(ctx.program->temp_count, sizeof(*ctx.temps)))) if (!(ctx.temps = vkd3d_calloc(ctx.program->temp_count, sizeof(*ctx.temps))))
goto fail; goto fail;