[Mesa-dev] [PATCH 10/12] nv50/ir: Check for TGSI_SEMANTIC_CULLDIST in tgsi declarations

Dave Airlie airlied at gmail.com
Mon Apr 4 02:15:36 UTC 2016


From: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>

Signed-off-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
index 4f012cd..fbb3cca 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_tgsi.cpp
@@ -1162,6 +1162,9 @@ bool Source::scanDeclaration(const struct tgsi_full_declaration *decl)
          case TGSI_SEMANTIC_CLIPDIST:
             info->io.genUserClip = -1;
             break;
+         case TGSI_SEMANTIC_CULLDIST:
+            info->io.genUserClip = -1;
+            break;
          case TGSI_SEMANTIC_SAMPLEMASK:
             info->io.sampleMask = i;
             break;
-- 
2.5.0



More information about the mesa-dev mailing list