From 1e86f002478a4629994afe4e8ffd176a56a4f5a0 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 17 Oct 2024 13:44:34 +0200 Subject: [PATCH] vkd3d-shader/ir: Validate INCONTROLPOINT registers. --- libs/vkd3d-shader/ir.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index 59ebcf5e..3da16a5b 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -6256,6 +6256,11 @@ static void vsir_validate_io_register(struct validation_context *ctx, } break; + case VKD3DSPR_INCONTROLPOINT: + signature = &ctx->program->input_signature; + has_control_point = true; + break; + case VKD3DSPR_PATCHCONST: signature = &ctx->program->patch_constant_signature; break; @@ -6694,6 +6699,10 @@ static void vsir_validate_register(struct validation_context *ctx, vsir_validate_uav_register(ctx, reg); break; + case VKD3DSPR_INCONTROLPOINT: + vsir_validate_io_register(ctx, reg); + break; + case VKD3DSPR_PATCHCONST: vsir_validate_io_register(ctx, reg); break;