r600/sfn: Fix readport cylce map
authorGert Wollny <gert.wollny@collabora.com>
Fri, 24 Feb 2023 09:25:06 +0000 (10:25 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Feb 2023 15:59:03 +0000 (15:59 +0000)
This is currently of no consequence, because the bank swizzle
codes are only used to check legal ALU group configuration
and the bank swizzles are not yet allocated to the instruictions
here.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21516>

src/gallium/drivers/r600/sfn/sfn_alu_readport_validation.cpp

index d468122..d79cd7a 100644 (file)
@@ -219,8 +219,8 @@ AluReadportReservation::cycle_vec(AluBankSwizzle swz, int src)
    static const int mapping[AluBankSwizzle::alu_vec_unknown][max_gpr_readports] = {
       {0, 1, 2},
       {0, 2, 1},
-      {1, 0, 2},
       {1, 2, 0},
+      {1, 0, 2},
       {2, 0, 1},
       {2, 1, 0}
    };