From: Rhys Perry Date: Mon, 14 Oct 2019 16:17:00 +0000 (+0100) Subject: aco: properly combine additions into ds_write2_b64/ds_read2_b64 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bdf47a12736e89e1befaa77567668a5128dc2486;p=mesa.git aco: properly combine additions into ds_write2_b64/ds_read2_b64 Signed-off-by: Rhys Perry Reviewed-by: Daniel Schürmann --- 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) {