diff options
| author | 2020-09-17 15:04:14 -0400 | |
|---|---|---|
| committer | 2020-09-17 15:04:17 -0400 | |
| commit | ffc66f089d8a3aade2758e382501f87e4d98e7ff (patch) | |
| tree | 3bc816bc895068d0ff9444754bd9db517421a681 /src | |
| parent | Merge pull request #4653 from ReinUsesLisp/gc-warns (diff) | |
| download | yuzu-ffc66f089d8a3aade2758e382501f87e4d98e7ff.tar.gz yuzu-ffc66f089d8a3aade2758e382501f87e4d98e7ff.tar.xz yuzu-ffc66f089d8a3aade2758e382501f87e4d98e7ff.zip | |
decoder/texture: Eliminate narrowing conversion in GetTldCode()
The assignment was previously truncating a u64 value to a bool.
Diffstat (limited to 'src')
| -rw-r--r-- | src/video_core/shader/decode/texture.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/video_core/shader/decode/texture.cpp b/src/video_core/shader/decode/texture.cpp index 29ebf65ba..a03b50e39 100644 --- a/src/video_core/shader/decode/texture.cpp +++ b/src/video_core/shader/decode/texture.cpp | |||
| @@ -763,7 +763,7 @@ Node4 ShaderIR::GetTld4Code(Instruction instr, TextureType texture_type, bool de | |||
| 763 | 763 | ||
| 764 | Node4 ShaderIR::GetTldCode(Tegra::Shader::Instruction instr) { | 764 | Node4 ShaderIR::GetTldCode(Tegra::Shader::Instruction instr) { |
| 765 | const auto texture_type{instr.tld.texture_type}; | 765 | const auto texture_type{instr.tld.texture_type}; |
| 766 | const bool is_array{instr.tld.is_array}; | 766 | const bool is_array{instr.tld.is_array != 0}; |
| 767 | const bool lod_enabled{instr.tld.GetTextureProcessMode() == TextureProcessMode::LL}; | 767 | const bool lod_enabled{instr.tld.GetTextureProcessMode() == TextureProcessMode::LL}; |
| 768 | const std::size_t coord_count{GetCoordCount(texture_type)}; | 768 | const std::size_t coord_count{GetCoordCount(texture_type)}; |
| 769 | 769 | ||