Mesa (master): compiler: add printable values for cull distance varyings.

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


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

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

compiler: add printable values for cull distance varyings.

We need these for spir-v/nir shaders.

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/shader_enums.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/compiler/shader_enums.c b/src/compiler/shader_enums.c
index 729a358..3c5a268 100644
--- a/src/compiler/shader_enums.c
+++ b/src/compiler/shader_enums.c
@@ -151,6 +151,8 @@ gl_varying_slot_name(gl_varying_slot slot)
       ENUM(VARYING_SLOT_CLIP_VERTEX),
       ENUM(VARYING_SLOT_CLIP_DIST0),
       ENUM(VARYING_SLOT_CLIP_DIST1),
+      ENUM(VARYING_SLOT_CULL_DIST0),
+      ENUM(VARYING_SLOT_CULL_DIST1),
       ENUM(VARYING_SLOT_PRIMITIVE_ID),
       ENUM(VARYING_SLOT_LAYER),
       ENUM(VARYING_SLOT_VIEWPORT),




More information about the mesa-commit mailing list