From 11a9011510e8b6c256a86f057764c929afd99a5b Mon Sep 17 00:00:00 2001 From: kd-11 Date: Wed, 4 Mar 2026 02:54:42 +0300 Subject: [PATCH] rsx: Fix memory misalignment for temporary storage - We create the temp storage with alignment of U but then do a type cast to u128 later. This obviously causes problems. --- rpcs3/Emu/RSX/Common/TextureUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/Emu/RSX/Common/TextureUtils.cpp b/rpcs3/Emu/RSX/Common/TextureUtils.cpp index 937508035b..8cf3466bb9 100644 --- a/rpcs3/Emu/RSX/Common/TextureUtils.cpp +++ b/rpcs3/Emu/RSX/Common/TextureUtils.cpp @@ -244,7 +244,7 @@ struct copy_unmodified_block_swizzled } const u32 size_in_block = padded_width * padded_height * depth * 2; - rsx::simple_array tmp(size_in_block * words_per_block); + rsx::simple_array tmp(size_in_block * words_per_block); if (words_per_block == 1) [[likely]] {