diff options
| author | 2020-09-17 21:17:54 +0000 | |
|---|---|---|
| committer | 2020-09-17 21:17:54 +0000 | |
| commit | 31461589c596c00971da6f3d8c7be367595dd79b (patch) | |
| tree | c020ea78874bc16fd6514a94aa2273e0b91d186b /src | |
| parent | Merge pull request #4673 from lioncash/fallthrough (diff) | |
| parent | decoder/texture: Eliminate narrowing conversion in GetTldCode() (diff) | |
| download | yuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar.gz yuzu-31461589c596c00971da6f3d8c7be367595dd79b.tar.xz yuzu-31461589c596c00971da6f3d8c7be367595dd79b.zip | |
Merge pull request #4672 from lioncash/narrowing
decoder/texture: Eliminate narrowing conversion in GetTldCode()
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 | ||