Module: Mesa
Branch: master
Commit: 534658f79b0a6281f42bc8674d7f42c8d2192473
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=534658f79b0a6281f42bc8674d7f42c8d2192473

Author: Connor Abbott <[email protected]>
Date:   Mon Mar  8 19:34:42 2021 +0100

freedreno/computerator: Fix example assembly

Use the new bindless cat6 syntax for a6xx.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9463>

---

 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 e79421836cb..a1e463b4dc8 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 05350a98c2f..13b56694f57 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<a0.x>
 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 e6f7e73e5cd..41ee9e61f82 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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to