From 7eb7684818ead4ec7444ee309e22a9db731dd234 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Mon, 29 Aug 2016 10:18:15 +1000 Subject: [PATCH] spirv: translate cull distance semantic. This just translates to the correct cull distance slot. Reviewed-by: Edward O'Callaghan Reviewed-by: Jason Ekstrand Signed-off-by: Dave Airlie --- src/compiler/spirv/vtn_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c index 43bb3bcadf0..44c65ae83eb 100644 --- a/src/compiler/spirv/vtn_variables.c +++ b/src/compiler/spirv/vtn_variables.c @@ -783,7 +783,7 @@ vtn_get_builtin_location(struct vtn_builder *b, *location = VARYING_SLOT_CLIP_DIST0; /* XXX CLIP_DIST1? */ break; case SpvBuiltInCullDistance: - /* XXX figure this out */ + *location = VARYING_SLOT_CULL_DIST0; break; case SpvBuiltInVertexIndex: *location = SYSTEM_VALUE_VERTEX_ID; -- 2.30.2