From: Dave Airlie Date: Mon, 29 Aug 2016 00:18:15 +0000 (+1000) Subject: spirv: translate cull distance semantic. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7eb7684818ead4ec7444ee309e22a9db731dd234;p=mesa.git 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 --- 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;