From 3b772a277fe032c94654648d0671ff42fd3fdce6 Mon Sep 17 00:00:00 2001 From: Zack Rusin Date: Sat, 20 Oct 2007 16:59:37 -0400 Subject: Make lit work but in a very lame way - will have to be rewritten. --- src/mesa/pipe/llvm/instructions.cpp | 9 ++------- src/mesa/pipe/llvm/instructions.h | 1 - src/mesa/pipe/llvm/llvmtgsi.cpp | 3 +-- 3 files changed, 3 insertions(+), 10 deletions(-) (limited to 'src/mesa/pipe/llvm') diff --git a/src/mesa/pipe/llvm/instructions.cpp b/src/mesa/pipe/llvm/instructions.cpp index 3105c49bcc..5a40888696 100644 --- a/src/mesa/pipe/llvm/instructions.cpp +++ b/src/mesa/pipe/llvm/instructions.cpp @@ -167,7 +167,7 @@ llvm::Value *Instructions::callFAbs(llvm::Value *val) llvm::Value * Instructions::lit(llvm::Value *in) { -#if 1 +#if 0 printVector(in); return in; @@ -191,7 +191,7 @@ llvm::Value * Instructions::lit(llvm::Value *in) m_llvmLit = makeLitFunction(m_mod); } CallInst *call = new CallInst(m_llvmLit, in, name("litres"), m_block); - //call->setCallingConv(CallingConv::C); + call->setCallingConv(CallingConv::C); call->setTailCall(false); return call; #endif @@ -897,8 +897,3 @@ void Instructions::printVector(llvm::Value *val) call->setCallingConv(CallingConv::C); call->setTailCall(true); } - -llvm::Value * Instructions::swizzleWrite(llvm::Value *in, int mask) -{ - -} diff --git a/src/mesa/pipe/llvm/instructions.h b/src/mesa/pipe/llvm/instructions.h index bb71cc8520..87203fdc10 100644 --- a/src/mesa/pipe/llvm/instructions.h +++ b/src/mesa/pipe/llvm/instructions.h @@ -34,7 +34,6 @@ public: llvm::Value *rcp(llvm::Value *in); llvm::Value *rsq(llvm::Value *in); llvm::Value *sub(llvm::Value *in1, llvm::Value *in2); - llvm::Value *swizzleWrite(llvm::Value *in, int mask); void printVector(llvm::Value *val); private: diff --git a/src/mesa/pipe/llvm/llvmtgsi.cpp b/src/mesa/pipe/llvm/llvmtgsi.cpp index 2a86a4e442..049bf0fa6e 100644 --- a/src/mesa/pipe/llvm/llvmtgsi.cpp +++ b/src/mesa/pipe/llvm/llvmtgsi.cpp @@ -184,8 +184,7 @@ translate_instruction(llvm::Module *module, } break; case TGSI_OPCODE_LIT: { - //out = instr->lit(inputs[0]); - return; + out = instr->lit(inputs[0]); } break; case TGSI_OPCODE_RCP: { -- cgit v1.2.3