vkd3d-shader/ir: Validate INCONTROLPOINT registers.

This commit is contained in:
Giovanni Mascellani 2024-10-17 13:44:34 +02:00 committed by Henri Verbeet
parent a4ab53ab7b
commit 1e86f00247
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

@ -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;