From 5dfaa26990892b7bcc787baa8850ffc56eb88181 Mon Sep 17 00:00:00 2001 From: Giovanni Mascellani Date: Thu, 10 Oct 2024 22:05:08 +0200 Subject: [PATCH] vkd3d-shader/ir: Validate the allowed data type and component count for SV_CullDistance. --- 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 f5e32cd4..0bcc3d0a 100644 --- a/libs/vkd3d-shader/ir.c +++ b/libs/vkd3d-shader/ir.c @@ -6784,7 +6784,8 @@ sysval_validation_data[] = 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, 0, VKD3D_SHADER_COMPONENT_FLOAT, 4}, - [VKD3D_SHADER_SV_CULL_DISTANCE] = {PS_BIT | GS_BIT | HS_BIT | DS_BIT, PS_BIT | VS_BIT | GS_BIT | HS_BIT | DS_BIT}, + [VKD3D_SHADER_SV_CULL_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,