From 4dd15177d0a2459c95875a12f6a17e23787c57da Mon Sep 17 00:00:00 2001 From: Danylo Piliaiev Date: Mon, 24 Apr 2023 16:09:10 +0200 Subject: [PATCH] ir3: documents (ss) flag for cat7 instructions Blob produces "lock" instructions with (ss), so our past guess that cat7 supports (ss) is true. Signed-off-by: Danylo Piliaiev Part-of: --- src/freedreno/.gitlab-ci/reference/prefetch-test.log | 2 +- src/freedreno/ir3/tests/disasm.c | 1 + src/freedreno/isa/ir3-cat7.xml | 18 +++++++++--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/src/freedreno/.gitlab-ci/reference/prefetch-test.log b/src/freedreno/.gitlab-ci/reference/prefetch-test.log index e3cd8ee..b337741 100644 --- a/src/freedreno/.gitlab-ci/reference/prefetch-test.log +++ b/src/freedreno/.gitlab-ci/reference/prefetch-test.log @@ -149897,7 +149897,7 @@ shader-blocks: :2:0052:0065[500d301ax_48082d90x] (sy)(ss)(nop2) (ul)add.f hr6.z, h400, (neg)hr ; dontcare bits in add.f: 0005000000000000 :6:0053:0068[c889800bx_0f425025x] no match: c889800b0f425025 :7:0054:0069[f063c3fcx_7bf4fa22x] (sy)bar.g.l ; dontcare bits in bar: 0001c3fc7bf4fa22 - :7:0055:0070[fa84d9e1x_abfcf7d3x] (sy)(jp)dcinv.shr ; dontcare bits in dcinv: 0004d9e1abfcf7d3 + :7:0055:0070[fa84d9e1x_abfcf7d3x] (sy)(ss)(jp)dcinv.shr ; dontcare bits in dcinv: 0004c9e1abfcf7d3 ----------------------------------------------- 8192 (0x2000) bytes 000000: 0000001e 03820000 0000001d 02820000 |................| diff --git a/src/freedreno/ir3/tests/disasm.c b/src/freedreno/ir3/tests/disasm.c index 1de2f80..e600310 100644 --- a/src/freedreno/ir3/tests/disasm.c +++ b/src/freedreno/ir3/tests/disasm.c @@ -446,6 +446,7 @@ static const struct test { INSTR_6XX(e2080000_00000000, "dccln.all"), INSTR_7XX(e3c20000_00000000, "lock"), + INSTR_7XX(fbc21000_00000000, "(sy)(ss)(jp)lock"), /* dEQP-VK.pipeline.monolithic.sampler.border_swizzle.r4g4b4a4_unorm_pack16.rg1a.opaque_white.gather_1.no_swizzle_hint */ INSTR_7XX(e45401a0_bfba7736, "alias.tex.b32.1 r40.x, (-1.456763)"), diff --git a/src/freedreno/isa/ir3-cat7.xml b/src/freedreno/isa/ir3-cat7.xml index 651fda84..45d9037 100644 --- a/src/freedreno/isa/ir3-cat7.xml +++ b/src/freedreno/isa/ir3-cat7.xml @@ -31,7 +31,7 @@ SOFTWARE. xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx - x + 111 @@ -39,7 +39,7 @@ SOFTWARE. - {SY}{JP}{NAME}{G}{L}{R}{W} + {SY}{SS}{JP}{NAME}{G}{L}{R}{W} x1xxxx @@ -69,7 +69,7 @@ SOFTWARE. - {SY}{JP}{NAME}{TYPE} + {SY}{SS}{JP}{NAME}{TYPE} xxxxxx @@ -99,7 +99,7 @@ SOFTWARE. TODO: how is it different from a bunch of nops? - {SY}{JP}{NAME}{DURATION} + {SY}{SS}{JP}{NAME}{DURATION} xxxxxx @@ -118,7 +118,7 @@ SOFTWARE. data cache instructions. - {SY}{JP}{NAME} + {SY}{SS}{JP}{NAME} xxxxxxxxxx 0011 @@ -154,7 +154,7 @@ SOFTWARE. - {SY}{JP}{NAME} + {SY}{SS}{JP}{NAME} 1000010000 0111 @@ -163,7 +163,7 @@ SOFTWARE. - {SY}{JP}{NAME} + {SY}{SS}{JP}{NAME} 1001010000 0111 @@ -281,7 +281,7 @@ SOFTWARE. - {SY}{JP}{NAME}.{SCOPE}.{SRC_TYPE}.{UNK} {DST}, {SRC} + {SY}{SS}{JP}{NAME}.{SCOPE}.{SRC_TYPE}.{UNK} {DST}, {SRC} @@ -304,7 +304,7 @@ SOFTWARE. - x + xx -- 2.7.4