From dfc18781cc46af636cc49c7cf0b1949589499df9 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Fri, 18 Jul 2025 20:24:46 +0200 Subject: [PATCH] vkd3d-shader/ir: Check that GSINSTID registers have dimension SCALAR. --- libs/vkd3d-shader/ir.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index 1eb0d891f..db7c9b36d 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -9554,6 +9554,7 @@ static void vsir_validate_register(struct validation_context *ctx, [VKD3DSPR_LOCALTHREADINDEX] = {true, 0, VSIR_DIMENSION_VEC4}, [VKD3DSPR_COVERAGE] = {true, 0, VSIR_DIMENSION_VEC4}, [VKD3DSPR_SAMPLEMASK] = {true, 0, VSIR_DIMENSION_SCALAR}, + [VKD3DSPR_GSINSTID] = {true, 0, VSIR_DIMENSION_SCALAR}, [VKD3DSPR_DEPTHOUTGE] = {true, 0, VSIR_DIMENSION_SCALAR}, [VKD3DSPR_DEPTHOUTLE] = {true, 0, VSIR_DIMENSION_SCALAR}, }; @@ -9692,10 +9693,6 @@ static void vsir_validate_register(struct validation_context *ctx, vsir_validate_register_without_indices(ctx, reg); break; - case VKD3DSPR_GSINSTID: - vsir_validate_register_without_indices(ctx, reg); - break; - case VKD3DSPR_OUTSTENCILREF: vsir_validate_register_without_indices(ctx, reg); break;