Mesa (master): spirv: translate cull distance semantic.

Dave Airlie airlied at kemper.freedesktop.org
Tue Oct 4 00:18:45 UTC 2016


Module: Mesa
Branch: master
Commit: 7eb7684818ead4ec7444ee309e22a9db731dd234
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7eb7684818ead4ec7444ee309e22a9db731dd234

Author: Dave Airlie <airlied at redhat.com>
Date:   Mon Aug 29 10:18:15 2016 +1000

spirv: translate cull distance semantic.

This just translates to the correct cull distance slot.

Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
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 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;




More information about the mesa-commit mailing list