summaryrefslogtreecommitdiffstats
path: root/src/compiler/spirv
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-08-29 10:18:15 +1000
committerDave Airlie <airlied@redhat.com>2016-10-04 10:16:23 +1000
commit7eb7684818ead4ec7444ee309e22a9db731dd234 (patch)
tree9077b84837656bc2d5817659175115f82a7c89c8 /src/compiler/spirv
parentbd0157d542594951e5dfdc2d0ea9252320c3784c (diff)
downloadexternal_mesa3d-7eb7684818ead4ec7444ee309e22a9db731dd234.zip
external_mesa3d-7eb7684818ead4ec7444ee309e22a9db731dd234.tar.gz
external_mesa3d-7eb7684818ead4ec7444ee309e22a9db731dd234.tar.bz2
spirv: translate cull distance semantic.
This just translates to the correct cull distance slot. Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/compiler/spirv')
-rw-r--r--src/compiler/spirv/vtn_variables.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/spirv/vtn_variables.c b/src/compiler/spirv/vtn_variables.c
index 43bb3bc..44c65ae 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;