vkd3d-shader/ir: Validate index count for TESSCOORD registers.

This commit is contained in:
Giovanni Mascellani 2024-11-21 15:25:04 +01:00 committed by Henri Verbeet
parent f2659c14a2
commit 26251d02a9
Notes: Henri Verbeet 2024-11-24 00:10:10 +01:00
Approved-by: Giovanni Mascellani (@giomasce)
Approved-by: Henri Verbeet (@hverbeet)
Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1270

View File

@ -7233,6 +7233,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_TESSCOORD:
vsir_validate_register_without_indices(ctx, reg);
break;
case VKD3DSPR_DEPTHOUTGE: case VKD3DSPR_DEPTHOUTGE:
vsir_validate_register_without_indices(ctx, reg); vsir_validate_register_without_indices(ctx, reg);
break; break;