mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 20:00:11 +01:00
aco: fix copy+paste error in split_buffer_store
Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5207>
This commit is contained in:
parent
841fdfcd45
commit
a18da83d18
1 changed files with 1 additions and 1 deletions
|
|
@ -3857,7 +3857,7 @@ void split_buffer_store(isel_context *ctx, nir_intrinsic_instr *instr, bool smem
|
|||
|
||||
/* dword or larger stores have to be dword-aligned */
|
||||
unsigned align_mul = instr ? nir_intrinsic_align_mul(instr) : 4;
|
||||
unsigned align_offset = instr ? nir_intrinsic_align_mul(instr) : 0;
|
||||
unsigned align_offset = instr ? nir_intrinsic_align_offset(instr) : 0;
|
||||
bool dword_aligned = (align_offset + offset) % 4 == 0 && align_mul % 4 == 0;
|
||||
if (bytes >= 4 && !dword_aligned)
|
||||
bytes = MIN2(bytes, 2);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue