vkd3d-shader/ir: Validate OUTCONTROLPOINT registers.

This commit is contained in:
Giovanni Mascellani 2024-10-17 13:45:14 +02:00 committed by Henri Verbeet
parent 1e86f00247
commit 03ad04c890
Notes: Henri Verbeet 2024-10-17 17:40:38 +02:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1196

View File

@ -6261,6 +6261,11 @@ static void vsir_validate_io_register(struct validation_context *ctx,
has_control_point = true; has_control_point = true;
break; break;
case VKD3DSPR_OUTCONTROLPOINT:
signature = &ctx->program->output_signature;
has_control_point = true;
break;
case VKD3DSPR_PATCHCONST: case VKD3DSPR_PATCHCONST:
signature = &ctx->program->patch_constant_signature; signature = &ctx->program->patch_constant_signature;
break; break;
@ -6703,6 +6708,10 @@ static void vsir_validate_register(struct validation_context *ctx,
vsir_validate_io_register(ctx, reg); vsir_validate_io_register(ctx, reg);
break; break;
case VKD3DSPR_OUTCONTROLPOINT:
vsir_validate_io_register(ctx, reg);
break;
case VKD3DSPR_PATCHCONST: case VKD3DSPR_PATCHCONST:
vsir_validate_io_register(ctx, reg); vsir_validate_io_register(ctx, reg);
break; break;