[Mesa-dev] [PATCH 07/19] nv50/ir: comment out code to allow input/immed loads

Ilia Mirkin imirkin at alum.mit.edu
Mon Jan 13 11:19:23 PST 2014


This code was missing a break which made it ineffective. But since
shader input loads have been disallowed, define the code out.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp b/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp
index 18fa069..a84a54a 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_target_nv50.cpp
@@ -310,9 +310,12 @@ TargetNV50::insnCanLoad(const Instruction *i, int s,
       if (ld->bb->getProgram()->getType() == Program::TYPE_GEOMETRY)
          return false;
       break;
+#if 0
    case 0x0d:
       if (ld->bb->getProgram()->getType() != Program::TYPE_GEOMETRY)
          return false;
+      break;
+#endif
    default:
       return false;
    }
-- 
1.8.3.2



More information about the mesa-dev mailing list