summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/llvm/llvmtgsi.cpp
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2007-10-23 07:11:39 -0400
committerZack Rusin <[email protected]>2007-10-24 11:21:05 -0400
commitba823b3ded1b6ec47b8a0e26ed08a229fe1a9140 (patch)
tree29bd5193e10add738748976d56fc499a3fe5fd17 /src/mesa/pipe/llvm/llvmtgsi.cpp
parent1248b9776bfeec1f61962604b21212d2cf336283 (diff)
Implement cross product and abs opcode
Diffstat (limited to 'src/mesa/pipe/llvm/llvmtgsi.cpp')
-rw-r--r--src/mesa/pipe/llvm/llvmtgsi.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mesa/pipe/llvm/llvmtgsi.cpp b/src/mesa/pipe/llvm/llvmtgsi.cpp
index 69d54bf9af2..8983f162972 100644
--- a/src/mesa/pipe/llvm/llvmtgsi.cpp
+++ b/src/mesa/pipe/llvm/llvmtgsi.cpp
@@ -306,11 +306,15 @@ translate_instruction(llvm::Module *module,
out = instr->pow(inputs[0], inputs[1]);
}
break;
- case TGSI_OPCODE_CROSSPRODUCT:
+ case TGSI_OPCODE_CROSSPRODUCT: {
+ out = instr->cross(inputs[0], inputs[1]);
+ }
break;
case TGSI_OPCODE_MULTIPLYMATRIX:
break;
- case TGSI_OPCODE_ABS:
+ case TGSI_OPCODE_ABS: {
+ out = instr->abs(inputs[0]);
+ }
break;
case TGSI_OPCODE_RCC:
break;