summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/baseResults/spv.atomic.comp.out
blob: bc8d9b81448a48f9301b25800d532ac57f02c460 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
spv.atomic.comp
Warning, version 310 is not yet complete; most version-specific features are present, but some are missing.

Shader version: 310
Requested GL_ARB_gl_spirv
local_size = (1, 1, 1)
0:? Sequence
0:14  Function Definition: func(au1; (global highp uint)
0:14    Function Parameters: 
0:14      'c' (in highp atomic_uint)
0:16    Sequence
0:16      Branch: Return with expression
0:16        AtomicCounterIncrement (global highp uint)
0:16          'c' (in highp atomic_uint)
0:19  Function Definition: main( (global void)
0:19    Function Parameters: 
0:21    Sequence
0:21      MemoryBarrierAtomicCounter (global void)
0:22      Function Call: func(au1; (global highp uint)
0:22        'counter' (layout(binding=0 offset=0 ) uniform highp atomic_uint)
0:23      Sequence
0:23        move second child to first child (temp highp uint)
0:23          'val' (temp highp uint)
0:23          AtomicCounter (global highp uint)
0:23            direct index (layout(binding=0 offset=4 ) temp highp atomic_uint)
0:23              'countArr' (layout(binding=0 offset=4 ) uniform 4-element array of highp atomic_uint)
0:23              Constant:
0:23                2 (const int)
0:24      AtomicCounterDecrement (global highp uint)
0:24        'counter' (layout(binding=0 offset=0 ) uniform highp atomic_uint)
0:36  Function Definition: atoms( (global void)
0:36    Function Parameters: 
0:38    Sequence
0:38      Sequence
0:38        move second child to first child (temp highp int)
0:38          'origi' (temp highp int)
0:38          AtomicAdd (global highp int)
0:38            'atomi' (shared highp int)
0:38            Constant:
0:38              3 (const int)
0:39      Sequence
0:39        move second child to first child (temp highp uint)
0:39          'origu' (temp highp uint)
0:39          AtomicAnd (global highp uint)
0:39            'atomu' (shared highp uint)
0:39            'value' (shared highp uint)
0:40      move second child to first child (temp highp uint)
0:40        'origu' (temp highp uint)
0:40        AtomicOr (global highp uint)
0:40          'atomu' (shared highp uint)
0:40          Constant:
0:40            7 (const uint)
0:41      move second child to first child (temp highp uint)
0:41        'origu' (temp highp uint)
0:41        AtomicXor (global highp uint)
0:41          'atomu' (shared highp uint)
0:41          Constant:
0:41            7 (const uint)
0:42      move second child to first child (temp highp uint)
0:42        'origu' (temp highp uint)
0:42        AtomicMin (global highp uint)
0:42          'atomu' (shared highp uint)
0:42          'value' (shared highp uint)
0:43      move second child to first child (temp highp int)
0:43        'origi' (temp highp int)
0:43        AtomicMax (global highp int)
0:43          'atomi' (shared highp int)
0:43          Constant:
0:43            7 (const int)
0:44      move second child to first child (temp highp int)
0:44        'origi' (temp highp int)
0:44        AtomicExchange (global highp int)
0:44          'atomi' (shared highp int)
0:44          'origi' (temp highp int)
0:45      move second child to first child (temp highp uint)
0:45        'origu' (temp highp uint)
0:45        AtomicCompSwap (global highp uint)
0:45          'atomu' (shared highp uint)
0:45          Constant:
0:45            10 (const uint)
0:45          'value' (shared highp uint)
0:46      AtomicAdd (global highp int)
0:46        direct index (temp highp int)
0:46          n_frames_rendered: direct index for structure (layout(column_major std140 offset=16 ) buffer highp 4-component vector of int)
0:46            'result' (layout(binding=0 column_major std140 ) restrict buffer block{layout(column_major std140 offset=0 ) buffer highp float f, layout(column_major std140 offset=16 ) buffer highp 4-component vector of int n_frames_rendered})
0:46            Constant:
0:46              1 (const int)
0:46          Constant:
0:46            2 (const int)
0:46        Constant:
0:46          1 (const int)
0:?   Linker Objects
0:?     'counter' (layout(binding=0 offset=0 ) uniform highp atomic_uint)
0:?     'countArr' (layout(binding=0 offset=4 ) uniform 4-element array of highp atomic_uint)
0:?     'value' (shared highp uint)
0:?     'arrX' (global 1-element array of highp int)
0:?     'arrY' (global 1-element array of highp int)
0:?     'arrZ' (global 1-element array of highp int)
0:?     'atomi' (shared highp int)
0:?     'atomu' (shared highp uint)
0:?     'result' (layout(binding=0 column_major std140 ) restrict buffer block{layout(column_major std140 offset=0 ) buffer highp float f, layout(column_major std140 offset=16 ) buffer highp 4-component vector of int n_frames_rendered})


Linked compute stage:


Shader version: 310
Requested GL_ARB_gl_spirv
local_size = (1, 1, 1)
0:? Sequence
0:14  Function Definition: func(au1; (global highp uint)
0:14    Function Parameters: 
0:14      'c' (in highp atomic_uint)
0:16    Sequence
0:16      Branch: Return with expression
0:16        AtomicCounterIncrement (global highp uint)
0:16          'c' (in highp atomic_uint)
0:19  Function Definition: main( (global void)
0:19    Function Parameters: 
0:21    Sequence
0:21      MemoryBarrierAtomicCounter (global void)
0:22      Function Call: func(au1; (global highp uint)
0:22        'counter' (layout(binding=0 offset=0 ) uniform highp atomic_uint)
0:23      Sequence
0:23        move second child to first child (temp highp uint)
0:23          'val' (temp highp uint)
0:23          AtomicCounter (global highp uint)
0:23            direct index (layout(binding=0 offset=4 ) temp highp atomic_uint)
0:23              'countArr' (layout(binding=0 offset=4 ) uniform 4-element array of highp atomic_uint)
0:23              Constant:
0:23                2 (const int)
0:24      AtomicCounterDecrement (global highp uint)
0:24        'counter' (layout(binding=0 offset=0 ) uniform highp atomic_uint)
0:36  Function Definition: atoms( (global void)
0:36    Function Parameters: 
0:38    Sequence
0:38      Sequence
0:38        move second child to first child (temp highp int)
0:38          'origi' (temp highp int)
0:38          AtomicAdd (global highp int)
0:38            'atomi' (shared highp int)
0:38            Constant:
0:38              3 (const int)
0:39      Sequence
0:39        move second child to first child (temp highp uint)
0:39          'origu' (temp highp uint)
0:39          AtomicAnd (global highp uint)
0:39            'atomu' (shared highp uint)
0:39            'value' (shared highp uint)
0:40      move second child to first child (temp highp uint)
0:40        'origu' (temp highp uint)
0:40        AtomicOr (global highp uint)
0:40          'atomu' (shared highp uint)
0:40          Constant:
0:40            7 (const uint)
0:41      move second child to first child (temp highp uint)
0:41        'origu' (temp highp uint)
0:41        AtomicXor (global highp uint)
0:41          'atomu' (shared highp uint)
0:41          Constant:
0:41            7 (const uint)
0:42      move second child to first child (temp highp uint)
0:42        'origu' (temp highp uint)
0:42        AtomicMin (global highp uint)
0:42          'atomu' (shared highp uint)
0:42          'value' (shared highp uint)
0:43      move second child to first child (temp highp int)
0:43        'origi' (temp highp int)
0:43        AtomicMax (global highp int)
0:43          'atomi' (shared highp int)
0:43          Constant:
0:43            7 (const int)
0:44      move second child to first child (temp highp int)
0:44        'origi' (temp highp int)
0:44        AtomicExchange (global highp int)
0:44          'atomi' (shared highp int)
0:44          'origi' (temp highp int)
0:45      move second child to first child (temp highp uint)
0:45        'origu' (temp highp uint)
0:45        AtomicCompSwap (global highp uint)
0:45          'atomu' (shared highp uint)
0:45          Constant:
0:45            10 (const uint)
0:45          'value' (shared highp uint)
0:46      AtomicAdd (global highp int)
0:46        direct index (temp highp int)
0:46          n_frames_rendered: direct index for structure (layout(column_major std140 offset=16 ) buffer highp 4-component vector of int)
0:46            'result' (layout(binding=0 column_major std140 ) restrict buffer block{layout(column_major std140 offset=0 ) buffer highp float f, layout(column_major std140 offset=16 ) buffer highp 4-component vector of int n_frames_rendered})
0:46            Constant:
0:46              1 (const int)
0:46          Constant:
0:46            2 (const int)
0:46        Constant:
0:46          1 (const int)
0:?   Linker Objects
0:?     'counter' (layout(binding=0 offset=0 ) uniform highp atomic_uint)
0:?     'countArr' (layout(binding=0 offset=4 ) uniform 4-element array of highp atomic_uint)
0:?     'value' (shared highp uint)
0:?     'arrX' (global 1-element array of highp int)
0:?     'arrY' (global 1-element array of highp int)
0:?     'arrZ' (global 1-element array of highp int)
0:?     'atomi' (shared highp int)
0:?     'atomu' (shared highp uint)
0:?     'result' (layout(binding=0 column_major std140 ) restrict buffer block{layout(column_major std140 offset=0 ) buffer highp float f, layout(column_major std140 offset=16 ) buffer highp 4-component vector of int n_frames_rendered})