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.
This commit is contained in:
kd-11 2026-03-04 02:54:42 +03:00 committed by kd-11
parent e66f1fa306
commit 11a9011510

View file

@ -244,7 +244,7 @@ struct copy_unmodified_block_swizzled
}
const u32 size_in_block = padded_width * padded_height * depth * 2;
rsx::simple_array<U> tmp(size_in_block * words_per_block);
rsx::simple_array<U, sizeof(u128)> tmp(size_in_block * words_per_block);
if (words_per_block == 1) [[likely]]
{