summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/llvm/llvmtgsi.cpp
diff options
context:
space:
mode:
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 5ad45ff6ccf..44caa59d52f 100644
--- a/src/mesa/pipe/llvm/llvmtgsi.cpp
+++ b/src/mesa/pipe/llvm/llvmtgsi.cpp
@@ -241,11 +241,15 @@ translate_instruction(llvm::Module *module,
break;
case TGSI_OPCODE_NEGATE:
break;
- case TGSI_OPCODE_FRAC:
+ case TGSI_OPCODE_FRAC: {
+ out = instr->frc(inputs[0]);
+ }
break;
case TGSI_OPCODE_CLAMP:
break;
- case TGSI_OPCODE_FLOOR:
+ case TGSI_OPCODE_FLOOR: {
+ out = instr->floor(inputs[0]);
+ }
break;
case TGSI_OPCODE_ROUND:
break;