diff options
author | bunnei <bunneidev@gmail.com> | 2019-02-12 16:20:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-12 16:20:29 +0100 |
commit | c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907 (patch) | |
tree | a15c3ffb57fe0729ed314461071a6eaf591d7165 /src/video_core/shader/decode/conversion.cpp | |
parent | Merge pull request #2068 from ReinUsesLisp/shader-cleanup-textures (diff) | |
parent | Corrected F2I None mode to RoundEven. (diff) | |
download | yuzu-c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907.tar yuzu-c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907.tar.gz yuzu-c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907.tar.bz2 yuzu-c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907.tar.lz yuzu-c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907.tar.xz yuzu-c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907.tar.zst yuzu-c1accfefdebf4cdfd8e029bb5fd4ebe5d5c2d907.zip |
Diffstat (limited to 'src/video_core/shader/decode/conversion.cpp')
-rw-r--r-- | src/video_core/shader/decode/conversion.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/video_core/shader/decode/conversion.cpp b/src/video_core/shader/decode/conversion.cpp index a992f73f8..55a6fbbf2 100644 --- a/src/video_core/shader/decode/conversion.cpp +++ b/src/video_core/shader/decode/conversion.cpp @@ -118,8 +118,8 @@ u32 ShaderIR::DecodeConversion(NodeBlock& bb, u32 pc) { value = [&]() { switch (instr.conversion.f2i.rounding) { - case Tegra::Shader::F2iRoundingOp::None: - return value; + case Tegra::Shader::F2iRoundingOp::RoundEven: + return Operation(OperationCode::FRoundEven, PRECISE, value); case Tegra::Shader::F2iRoundingOp::Floor: return Operation(OperationCode::FFloor, PRECISE, value); case Tegra::Shader::F2iRoundingOp::Ceil: @@ -146,4 +146,4 @@ u32 ShaderIR::DecodeConversion(NodeBlock& bb, u32 pc) { return pc; } -} // namespace VideoCommon::Shader
\ No newline at end of file +} // namespace VideoCommon::Shader |