diff options
| author | Stenzek <stenzek@gmail.com> | 2017-04-07 23:00:42 +1000 |
|---|---|---|
| committer | Stenzek <stenzek@gmail.com> | 2017-04-07 23:03:14 +1000 |
| commit | 2492f196a716d3594022a5ea8ca1ff0178ee23b5 (patch) | |
| tree | 20f3b1bb3c5581c718493bec4b3827680d486a5a /Source/Core/VideoBackends/Vulkan/TextureConverter.cpp | |
| parent | f94cd57a7012bc6cce22f22f84356d9e260c0461 (diff) | |
TextureCache: Fix incomplete GPU texture decoding of non-square mips
Diffstat (limited to 'Source/Core/VideoBackends/Vulkan/TextureConverter.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/Vulkan/TextureConverter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp b/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp index cbe4322b1d..7765647b1f 100644 --- a/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp +++ b/Source/Core/VideoBackends/Vulkan/TextureConverter.cpp @@ -517,7 +517,8 @@ void TextureConverter::DecodeTexture(TextureCache::TCacheEntry* entry, u32 dst_l dispatcher.SetTexelBuffer(0, data_view); if (has_palette) dispatcher.SetTexelBuffer(1, m_texel_buffer_view_r16_uint); - auto groups = TextureConversionShader::GetDispatchCount(iter->second.base_info, width, height); + auto groups = TextureConversionShader::GetDispatchCount(iter->second.base_info, aligned_width, + aligned_height); dispatcher.Dispatch(groups.first, groups.second, 1); // Copy from temporary texture to final destination. |
