From acec00eae0604dd439a665f2ae8942c16d057853 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Sch=C3=BCrmann?= Date: Fri, 8 May 2020 16:18:15 +0100 Subject: [PATCH] aco: don't move create_vector subdword operands to unsupported register offsets Reviewed-by: Rhys Perry Part-of: --- src/amd/compiler/aco_register_allocation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_register_allocation.cpp b/src/amd/compiler/aco_register_allocation.cpp index 07b5130aa63..d296e61de50 100644 --- a/src/amd/compiler/aco_register_allocation.cpp +++ b/src/amd/compiler/aco_register_allocation.cpp @@ -551,7 +551,7 @@ bool get_regs_for_copies(ra_ctx& ctx, PhysReg reg(def_reg_lo); reg.reg_b += offset; assert(!reg_file.test(reg, var.rc.bytes())); - res = {reg, true}; + res = {reg, reg.byte() == 0 || instr_can_access_subdword(ctx, instr)}; break; } } -- 2.30.2