From c3b31b96e1e73cb992d037508d29e527326923db Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Tue, 8 Oct 2024 15:14:59 +0200 Subject: [PATCH] vkd3d-shader/ir: Validate register counts in patch constant signatures. --- libs/vkd3d-shader/ir.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index e306cc74..89ed1504 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -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;