diff options
author | bunnei <bunneidev@gmail.com> | 2018-10-14 14:42:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-14 14:42:38 -0400 |
commit | b82bbfba77ef1afe1cc4f8beb2c273c8b66092c8 (patch) | |
tree | 000e7462c1c946a96f7536140d29ea3237181913 /src/yuzu/debugger/graphics/graphics_surface.cpp | |
parent | 2f8ca32020d2b32abfcb96d433ca79c4974e15be (diff) | |
parent | 331ce2942c4906945b4d42f1ebe8b9b6e453c6ee (diff) |
Merge pull request #1480 from FernandoS27/neue-swizzle
Introduce 3D Swizzle seamlessly
Diffstat (limited to 'src/yuzu/debugger/graphics/graphics_surface.cpp')
-rw-r--r-- | src/yuzu/debugger/graphics/graphics_surface.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/debugger/graphics/graphics_surface.cpp b/src/yuzu/debugger/graphics/graphics_surface.cpp index cbcd5dd5f..44d423da2 100644 --- a/src/yuzu/debugger/graphics/graphics_surface.cpp +++ b/src/yuzu/debugger/graphics/graphics_surface.cpp @@ -386,8 +386,9 @@ void GraphicsSurfaceWidget::OnUpdate() { // TODO(bunnei): Will not work with BCn formats that swizzle 4x4 tiles. // Needs to be fixed if we plan to use this feature more, otherwise we may remove it. - auto unswizzled_data = Tegra::Texture::UnswizzleTexture( - *address, 1, Tegra::Texture::BytesPerPixel(surface_format), surface_width, surface_height); + auto unswizzled_data = + Tegra::Texture::UnswizzleTexture(*address, 1, Tegra::Texture::BytesPerPixel(surface_format), + surface_width, surface_height, 1U); auto texture_data = Tegra::Texture::DecodeTexture(unswizzled_data, surface_format, surface_width, surface_height); |