diff options
author | Zack Rusin <zack@tungstengraphics.com> | 2007-10-18 07:20:27 -0400 |
---|---|---|
committer | Zack Rusin <zack@tungstengraphics.com> | 2007-10-24 11:21:04 -0400 |
commit | 3ae767dd073e8c24fc159cb86f89e61ea7a0e85f (patch) | |
tree | fa27a2d81093510454768c8a85d6b7697f904a92 /src/mesa/pipe/llvm/llvmtgsi.cpp | |
parent | c6a1beb18fa5c556c3889f3a5ebdffe51981ad85 (diff) |
Fix some warnings and implement lg2
Diffstat (limited to 'src/mesa/pipe/llvm/llvmtgsi.cpp')
-rw-r--r-- | src/mesa/pipe/llvm/llvmtgsi.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/pipe/llvm/llvmtgsi.cpp b/src/mesa/pipe/llvm/llvmtgsi.cpp index 44caa59d52..b2f6d17e96 100644 --- a/src/mesa/pipe/llvm/llvmtgsi.cpp +++ b/src/mesa/pipe/llvm/llvmtgsi.cpp @@ -257,7 +257,9 @@ translate_instruction(llvm::Module *module, out = instr->ex2(inputs[0]); } break; - case TGSI_OPCODE_LOGBASE2: + case TGSI_OPCODE_LOGBASE2: { + out = instr->lg2(inputs[0]); + } break; case TGSI_OPCODE_POWER: { out = instr->pow(inputs[0], inputs[1]); |