aco: remove outdated assert in handle_operands()
authorRhys Perry <pendingchaos02@gmail.com>
Tue, 16 Jun 2020 13:58:15 +0000 (14:58 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 24 Jun 2020 20:38:35 +0000 (20:38 +0000)
"target" is no longer expected to be completely inside "swap".

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

src/amd/compiler/aco_lower_to_hw_instr.cpp

index e3bc6944ed114b37efbe7a1a68e6e232443d32e0..1973cca027efe9b96b74fbbfa77a9570521545d4 100644 (file)
@@ -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