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:
@@ -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]]
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user