Mesa (master): aco: don't move create_vector subdword operands to unsupported register offsets

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu May 21 12:21:18 UTC 2020


Module: Mesa
Branch: master
Commit: acec00eae0604dd439a665f2ae8942c16d057853
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=acec00eae0604dd439a665f2ae8942c16d057853

Author: Daniel Schürmann <daniel at schuermann.dev>
Date:   Fri May  8 16:18:15 2020 +0100

aco: don't move create_vector subdword operands to unsupported register offsets

Reviewed-by: Rhys Perry <pendingchaos02 at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5070>

---

 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;
                }
             }



More information about the mesa-commit mailing list