From a18da83d184ffa93f943a5963ebd4b86fa41fa91 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Tue, 26 May 2020 16:33:12 +0100 Subject: [PATCH] aco: fix copy+paste error in split_buffer_store MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann Part-of: --- src/amd/compiler/aco_instruction_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index f879a81c6ce..94a076f4917 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -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); -- 2.30.2