xref: /aosp_15_r20/external/mesa3d/src/freedreno/computerator/examples/early_preamble.asm (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1@localsize 1, 1, 1
2@buf 4  ; g[0]
3@invocationid(r0.x) ; r0.xyz
4@const(c0.x)  0.0, 0.0, 0.0, 0.0
5@earlypreamble
6
7shps #l_preamble_end
8getone #l_preamble_end
9
10mov.u32u32 r48.x, 1
11mov.u32u32 r48.y, 2
12mov.u32u32 r48.z, 3
13mov.u32u32 r48.w, 4
14(rpt5)nop
15stc.u32 c[0], r48.x, 4
16
17(sy)(ss)shpe
18
19l_preamble_end:
20(jp)nop
21
22(rpt3)mov.u32u32 r1.x, (r)c0.x
23(rpt5)nop
24stib.b.untyped.1d.u32.4.imm r1.x, r0.x, 0
25end
26