From 33972998a9351175c1f378c0f2534d1ae8f11588 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 10 Oct 2024 22:03:40 +0200 Subject: [PATCH] vkd3d-shader/ir: Validate the allowed data type and component count for SV_ClipDistance. --- libs/vkd3d-shader/ir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/vkd3d-shader/ir.c b/libs/vkd3d-shader/ir.c index 4463bb2c..75e28c01 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -6782,7 +6782,8 @@ sysval_validation_data[] = { [VKD3D_SHADER_SV_POSITION] = {PS_BIT | GS_BIT | HS_BIT | DS_BIT, VS_BIT | GS_BIT | HS_BIT | DS_BIT, 0, VKD3D_SHADER_COMPONENT_FLOAT, 4}, - [VKD3D_SHADER_SV_CLIP_DISTANCE] = {PS_BIT | GS_BIT | HS_BIT | DS_BIT, PS_BIT | VS_BIT | GS_BIT | HS_BIT | DS_BIT}, + [VKD3D_SHADER_SV_CLIP_DISTANCE] = {PS_BIT | GS_BIT | HS_BIT | DS_BIT, PS_BIT | VS_BIT | GS_BIT | HS_BIT | DS_BIT, 0, + VKD3D_SHADER_COMPONENT_FLOAT, 4}, }; static void vsir_validate_signature_element(struct validation_context *ctx,