From: Daniel Schürmann Date: Fri, 8 May 2020 15:18:15 +0000 (+0100) Subject: aco: don't move create_vector subdword operands to unsupported register offsets X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=acec00eae0604dd439a665f2ae8942c16d057853;p=mesa.git aco: don't move create_vector subdword operands to unsupported register offsets Reviewed-by: Rhys Perry Part-of: --- 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; } }