diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-02-11 23:46:45 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2019-02-11 23:46:45 +0100 |
commit | f5ec165e8c20f1a1608e499346648298c28e3bd2 (patch) | |
tree | fb23f901ebb6ba1985f99f2649903174cad92663 /src | |
parent | Merge pull request #1904 from bunnei/better-fermi-copy (diff) | |
download | yuzu-f5ec165e8c20f1a1608e499346648298c28e3bd2.tar yuzu-f5ec165e8c20f1a1608e499346648298c28e3bd2.tar.gz yuzu-f5ec165e8c20f1a1608e499346648298c28e3bd2.tar.bz2 yuzu-f5ec165e8c20f1a1608e499346648298c28e3bd2.tar.lz yuzu-f5ec165e8c20f1a1608e499346648298c28e3bd2.tar.xz yuzu-f5ec165e8c20f1a1608e499346648298c28e3bd2.tar.zst yuzu-f5ec165e8c20f1a1608e499346648298c28e3bd2.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/video_core/engines/shader_bytecode.h | 2 | ||||
-rw-r--r-- | src/video_core/shader/decode/conversion.cpp | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/video_core/engines/shader_bytecode.h b/src/video_core/engines/shader_bytecode.h index 269df9437..1f425f90b 100644 --- a/src/video_core/engines/shader_bytecode.h +++ b/src/video_core/engines/shader_bytecode.h @@ -186,7 +186,7 @@ enum class SubOp : u64 { }; enum class F2iRoundingOp : u64 { - None = 0, + RoundEven = 0, Floor = 1, Ceil = 2, Trunc = 3, 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 |