[Mesa-dev] [PATCH 2/2] spirv: translate cull distance semantic.

Dave Airlie airlied at gmail.com
Mon Aug 29 00:22:57 UTC 2016


From: Dave Airlie <airlied at redhat.com>

This just translates to the correct cull distance slot.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 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 84664ad..1a07cc8 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.5.5



More information about the mesa-dev mailing list