From bdf47a12736e89e1befaa77567668a5128dc2486 Mon Sep 17 00:00:00 2001 From: Rhys Perry Date: Mon, 14 Oct 2019 17:17:00 +0100 Subject: [PATCH] aco: properly combine additions into ds_write2_b64/ds_read2_b64 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann --- src/amd/compiler/aco_optimizer.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_optimizer.cpp b/src/amd/compiler/aco_optimizer.cpp index 4a287336d0d..d9596ea8b59 100644 --- a/src/amd/compiler/aco_optimizer.cpp +++ b/src/amd/compiler/aco_optimizer.cpp @@ -657,7 +657,8 @@ void label_instruction(opt_ctx &ctx, aco_ptr& instr) Temp base; uint32_t offset; if (i == 0 && parse_base_offset(ctx, instr.get(), i, &base, &offset) && base.regClass() == instr->operands[i].regClass()) { - if (instr->opcode == aco_opcode::ds_write2_b32 || instr->opcode == aco_opcode::ds_read2_b32) { + if (instr->opcode == aco_opcode::ds_write2_b32 || instr->opcode == aco_opcode::ds_read2_b32 || + instr->opcode == aco_opcode::ds_write2_b64 || instr->opcode == aco_opcode::ds_read2_b64) { if (offset % 4 == 0 && ds->offset0 + (offset >> 2) <= 255 && ds->offset1 + (offset >> 2) <= 255) { -- 2.30.2