From 534658f79b0a6281f42bc8674d7f42c8d2192473 Mon Sep 17 00:00:00 2001 From: Connor Abbott Date: Mon, 8 Mar 2021 19:34:42 +0100 Subject: [PATCH] freedreno/computerator: Fix example assembly Use the new bindless cat6 syntax for a6xx. Part-of: --- src/freedreno/computerator/examples/invocationid.asm | 2 +- src/freedreno/computerator/examples/simple.asm | 2 +- src/freedreno/computerator/examples/test-opcodes.sh | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/freedreno/computerator/examples/invocationid.asm b/src/freedreno/computerator/examples/invocationid.asm index e794218..a1e463b 100644 --- a/src/freedreno/computerator/examples/invocationid.asm +++ b/src/freedreno/computerator/examples/invocationid.asm @@ -7,7 +7,7 @@ @numwg(c2.x) ; c2.xyz mov.u32u32 r0.y, r0.x (rpt5)nop -stib.untyped.1d.u32.1 g[0] + r0.y, r0.x +stib.b.untyped.1d.u32.1.imm r0.x, r0.y, 0 end nop diff --git a/src/freedreno/computerator/examples/simple.asm b/src/freedreno/computerator/examples/simple.asm index 05350a9..13b5669 100644 --- a/src/freedreno/computerator/examples/simple.asm +++ b/src/freedreno/computerator/examples/simple.asm @@ -22,7 +22,7 @@ mova a0.x, hr4.x (ul)mov.u32u32 r0.x, r mov.u32u32 r0.y, 0x00000000 (rpt5)nop -stib.untyped.1d.u32.1 g[0] + r0.y, r0.x +stib.b.untyped.1d.u32.1.imm r0.x, r0.y, 0 end nop diff --git a/src/freedreno/computerator/examples/test-opcodes.sh b/src/freedreno/computerator/examples/test-opcodes.sh index e6f7e73..41ee9e6 100755 --- a/src/freedreno/computerator/examples/test-opcodes.sh +++ b/src/freedreno/computerator/examples/test-opcodes.sh @@ -140,10 +140,10 @@ mov.u32u32 r3.w, 3 (rpt5)nop ; and store results: -stib.untyped.1d.u32.1 g[0] + r3.x, r2.x ; control: full->full -stib.untyped.1d.u32.1 g[0] + r3.y, r2.y ; test: half->full -stib.untyped.1d.u32.1 g[0] + r3.z, r2.z ; control: half->half -stib.untyped.1d.u32.1 g[0] + r3.w, r2.w ; test: full->half +stib.untyped.1d.u32.1 r2.x, r3.x, 0 ; control: full->full +stib.untyped.1d.u32.1 r2.y, r3.y, 0 ; test: half->full +stib.untyped.1d.u32.1 r2.z, r3.z, 0 ; control: half->half +stib.untyped.1d.u32.1 r2.w, r3.w, 0 ; test: full->half (sy)nop end EOF -- 2.7.4