Mesa (master): aco: remove outdated assert in handle_operands()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Jun 24 20:54:17 UTC 2020


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

Author: Rhys Perry <pendingchaos02 at gmail.com>
Date:   Tue Jun 16 14:58:15 2020 +0100

aco: remove outdated assert in handle_operands()

"target" is no longer expected to be completely inside "swap".

Signed-off-by: Rhys Perry <pendingchaos02 at gmail.com>
Reviewed-by: Daniel Schürmann <daniel at schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5626>

---

 src/amd/compiler/aco_lower_to_hw_instr.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/amd/compiler/aco_lower_to_hw_instr.cpp b/src/amd/compiler/aco_lower_to_hw_instr.cpp
index e3bc6944ed1..1973cca027e 100644
--- a/src/amd/compiler/aco_lower_to_hw_instr.cpp
+++ b/src/amd/compiler/aco_lower_to_hw_instr.cpp
@@ -1585,8 +1585,6 @@ void handle_operands(std::map<PhysReg, copy_operation>& copy_map, lower_context*
          if (!imask)
             continue;
 
-         assert(target->second.bytes < swap.bytes);
-
          int offset = (int)target->second.op.physReg().reg_b - (int)swap.def.physReg().reg_b;
 
          /* split and update the middle (the portion that reads the swap's



More information about the mesa-commit mailing list