mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-05-12 16:19:44 -06:00
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:
parent
e66f1fa306
commit
11a9011510
@ -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]]
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user