From 479150b214c9a5b8bd5cefb997b58cd7ef3eaf27 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Sun, 10 Oct 2021 00:17:00 +0300 Subject: [PATCH] rsx: Fix decoding of linear cubemaps - 128-byte boundary is not observed in linear tiling. Verified in hw. --- rpcs3/Emu/RSX/Common/TextureUtils.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/TextureUtils.cpp b/rpcs3/Emu/RSX/Common/TextureUtils.cpp index 0d94798da3..967bc81a9b 100644 --- a/rpcs3/Emu/RSX/Common/TextureUtils.cpp +++ b/rpcs3/Emu/RSX/Common/TextureUtils.cpp @@ -492,7 +492,10 @@ namespace miplevel_depth = std::max(miplevel_depth / 2, 1); } - offset_in_src = utils::align(offset_in_src, 128); + if (!padded_row) // Only swizzled textures obey this restriction + { + offset_in_src = utils::align(offset_in_src, 128); + } } return result;