mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
Make lit work but in a very lame way - will have to be rewritten.
This commit is contained in:
parent
d4d8d7c468
commit
3b772a277f
3 changed files with 3 additions and 10 deletions
|
|
@ -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)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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: {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue