diff options
author | bunnei <bunneidev@gmail.com> | 2019-04-29 04:24:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-29 04:24:58 +0200 |
commit | c52233ec8b26d5dc8cdca746fc181191c99fb33b (patch) | |
tree | 9d56a04c21f541570426042e74c7befe6b279317 /src/video_core/shader/decode/conversion.cpp | |
parent | Merge pull request #2423 from FernandoS27/half-correct (diff) | |
parent | video_core: Silent -Wswitch warnings (diff) | |
download | yuzu-c52233ec8b26d5dc8cdca746fc181191c99fb33b.tar yuzu-c52233ec8b26d5dc8cdca746fc181191c99fb33b.tar.gz yuzu-c52233ec8b26d5dc8cdca746fc181191c99fb33b.tar.bz2 yuzu-c52233ec8b26d5dc8cdca746fc181191c99fb33b.tar.lz yuzu-c52233ec8b26d5dc8cdca746fc181191c99fb33b.tar.xz yuzu-c52233ec8b26d5dc8cdca746fc181191c99fb33b.tar.zst yuzu-c52233ec8b26d5dc8cdca746fc181191c99fb33b.zip |
Diffstat (limited to 'src/video_core/shader/decode/conversion.cpp')
-rw-r--r-- | src/video_core/shader/decode/conversion.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/conversion.cpp b/src/video_core/shader/decode/conversion.cpp index ba15b1115..b5ec9a6f5 100644 --- a/src/video_core/shader/decode/conversion.cpp +++ b/src/video_core/shader/decode/conversion.cpp @@ -120,10 +120,11 @@ u32 ShaderIR::DecodeConversion(NodeBlock& bb, u32 pc) { return Operation(OperationCode::FCeil, PRECISE, value); case Tegra::Shader::F2fRoundingOp::Trunc: return Operation(OperationCode::FTrunc, PRECISE, value); + default: + UNIMPLEMENTED_MSG("Unimplemented F2F rounding mode {}", + static_cast<u32>(instr.conversion.f2f.rounding.Value())); + return Immediate(0); } - UNIMPLEMENTED_MSG("Unimplemented F2F rounding mode {}", - static_cast<u32>(instr.conversion.f2f.rounding.Value())); - return Immediate(0); }(); value = GetSaturatedFloat(value, instr.alu.saturate_d); |