From 03ad04c89004c7f800c5b1a0ea7ba28622916328 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 17 Oct 2024 13:45:14 +0200 Subject: [PATCH] vkd3d-shader/ir: Validate OUTCONTROLPOINT 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 3da16a5b..b47f12d2 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -6261,6 +6261,11 @@ static void vsir_validate_io_register(struct validation_context *ctx, has_control_point = true; break; + case VKD3DSPR_OUTCONTROLPOINT: + signature = &ctx->program->output_signature; + has_control_point = true; + break; + case VKD3DSPR_PATCHCONST: signature = &ctx->program->patch_constant_signature; break; @@ -6703,6 +6708,10 @@ static void vsir_validate_register(struct validation_context *ctx, vsir_validate_io_register(ctx, reg); break; + case VKD3DSPR_OUTCONTROLPOINT: + vsir_validate_io_register(ctx, reg); + break; + case VKD3DSPR_PATCHCONST: vsir_validate_io_register(ctx, reg); break;