Fixed typo in the curbe load for SimContext
authorBenjamin Segovia <segovia.benjamin@gmail.com>
Mon, 21 May 2012 16:33:44 +0000 (16:33 +0000)
committerKeith Packard <keithp@keithp.com>
Fri, 10 Aug 2012 23:17:58 +0000 (16:17 -0700)
backend/src/backend/sim_context.cpp

index 91073b4..1bcb206 100644 (file)
@@ -123,7 +123,7 @@ namespace gbe
       GBE_ASSERT (arg.type != ir::FunctionArgument::IMAGE &&
                   arg.type != ir::FunctionArgument::LOCAL_POINTER);
       GBE_ASSERT(offset >= 0);
-      if (arg.type != ir::FunctionArgument::VALUE && usedRegs.contains(reg))
+      if (arg.type != ir::FunctionArgument::STRUCTURE && usedRegs.contains(reg))
         o << "LOAD(_" << uint32_t(reg) << ", curbe + " << offset << ");\n";
     }