mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2024-11-21 16:46:41 -08:00
vkd3d-shader/ir: Validate register counts in patch constant signatures.
This commit is contained in:
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
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user