Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/mesa
Path: blob/21.2-virgl/src/freedreno/computerator/examples/stg_ldg_offset.asm
4570 views
1
@localsize 16, 1, 1
2
@buf 128 (c2.x) ; c2.xy
3
@invocationid(r0.x) ; r0.xyz
4
mov.u32u32 r0.y, r0.x
5
mov.u32u32 r1.x, c2.x
6
mov.u32u32 r1.y, c2.y
7
mov.u32u32 r2.x, 0xff
8
(rpt5)nop
9
stg.a.u32 g[r1.x+r0.y<<4+2<<2], r2.x, 1
10
nop(sy)
11
ldg.a.u32 r4.x, g[r1.x+r0.y<<4+2<<2], 1
12
nop(sy)
13
add.u r4.x, r4.x, 1
14
(rpt3)nop
15
stg.a.u32 g[r1.x+r0.y<<4+1<<2], r4.x, 1
16
end
17
nop
18
19