ir3: Fix values of #wrmask not being compatible with ir3 parser
authorDanylo Piliaiev <dpiliaiev@igalia.com>
Wed, 11 Oct 2023 14:33:24 +0000 (16:33 +0200)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 Oct 2023 18:35:32 +0000 (18:35 +0000)
IR3 parser expects wrmask values to be in xyzw order.

Signed-off-by: Danylo Piliaiev <dpiliaiev@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25661>

src/freedreno/ir3/tests/disasm.c
src/freedreno/isa/ir3-common.xml

index e809a879a0b3cb414a201c50689710779107ad1c..f012d2a3cfc205a14447ea4168dd28369d5b71f7 100644 (file)
@@ -179,6 +179,7 @@ static const struct test {
    INSTR_6XX(a0c81108_e2000001, "sam.base0 (f32)(x)r2.x, r0.x, s#16, a1.x"),
    INSTR_6XX(a048d107_cc080a07, "isaml.base3 (s32)(x)r1.w, r0.w, r1.y, s#0, t#6"),
    INSTR_6XX(a048d107_e0080a07, "isaml.base3 (s32)(x)r1.w, r0.w, r1.y, s#0, a1.x"),
+   INSTR_6XX(a1481606_e4803035, "saml.base0 (f32)(yz)r1.z, r6.z, r6.x, s#36, a1.x"),
 
    INSTR_7XX(a0081f02_e2000001, "isam.base0 (f32)(xyzw)r0.z, r0.x, t#16, a1.x"),
    INSTR_7XX(a148310d_e028302c, "saml.base2 (u32)(x)r3.y, hr5.z, hr6.x, t#1, a1.x"),
index 09afc2648cce3f055a681cd8cc50b678e222e1c6..8662dbd7f79cc0e74ac288a1e1e2afb648e04c9b 100644 (file)
@@ -350,8 +350,8 @@ SOFTWARE.
        <value val="2"  display="y"/>
        <value val="3"  display="xy"/>
        <value val="4"  display="z"/>
-       <value val="5"  display="zx"/>
-       <value val="6"  display="zy"/>
+       <value val="5"  display="xz"/>
+       <value val="6"  display="yz"/>
        <value val="7"  display="xyz"/>
        <value val="8"  display="w"/>
        <value val="9"  display="xw"/>