summaryrefslogtreecommitdiffstats
path: root/chromium/third_party/glslang/src/Test/baseResults/spv.localAggregates.frag.out
blob: cd8afedca0d04c3c4791de719661dc40f9caa1e7 (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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
spv.localAggregates.frag
Warning, version 400 is not yet complete; most version-specific features are present, but some are missing.


Linked fragment stage:


// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 143

                              Capability Shader
               1:             ExtInstImport  "GLSL.std.450"
                              MemoryModel Logical GLSL450
                              EntryPoint Fragment 4  "main" 18 43 93 101 111 138 142
                              ExecutionMode 4 OriginUpperLeft
                              Source GLSL 400
                              Name 4  "main"
                              Name 8  "s1"
                              MemberName 8(s1) 0  "i"
                              MemberName 8(s1) 1  "f"
                              Name 10  "s2"
                              MemberName 10(s2) 0  "i"
                              MemberName 10(s2) 1  "f"
                              MemberName 10(s2) 2  "s1_1"
                              MemberName 10(s2) 3  "bleh"
                              Name 12  "locals2"
                              Name 13  "s1"
                              MemberName 13(s1) 0  "i"
                              MemberName 13(s1) 1  "f"
                              Name 14  "s2"
                              MemberName 14(s2) 0  "i"
                              MemberName 14(s2) 1  "f"
                              MemberName 14(s2) 2  "s1_1"
                              MemberName 14(s2) 3  "bleh"
                              Name 15  "s1"
                              MemberName 15(s1) 0  "i"
                              MemberName 15(s1) 1  "f"
                              Name 16  "s3"
                              MemberName 16(s3) 0  "s2_1"
                              MemberName 16(s3) 1  "i"
                              MemberName 16(s3) 2  "f"
                              MemberName 16(s3) 3  "s1_1"
                              Name 18  "foo3"
                              Name 39  "localFArray"
                              Name 43  "coord"
                              Name 52  "localIArray"
                              Name 71  "x"
                              Name 73  "localArray"
                              Name 78  "i"
                              Name 87  "a"
                              Name 93  "condition"
                              Name 101  "color"
                              Name 111  "gl_FragColor"
                              Name 131  "samp2D"
                              Name 136  "s1"
                              MemberName 136(s1) 0  "i"
                              MemberName 136(s1) 1  "f"
                              Name 138  "foo"
                              Name 139  "s1"
                              MemberName 139(s1) 0  "i"
                              MemberName 139(s1) 1  "f"
                              Name 140  "s2"
                              MemberName 140(s2) 0  "i"
                              MemberName 140(s2) 1  "f"
                              MemberName 140(s2) 2  "s1_1"
                              MemberName 140(s2) 3  "bleh"
                              Name 142  "foo2"
                              MemberDecorate 16(s3) 0 Flat
                              MemberDecorate 16(s3) 1 Flat
                              MemberDecorate 16(s3) 2 Flat
                              MemberDecorate 16(s3) 3 Flat
                              Decorate 93(condition) Flat
                              Decorate 131(samp2D) DescriptorSet 0
                              MemberDecorate 136(s1) 0 Flat
                              MemberDecorate 136(s1) 1 Flat
                              MemberDecorate 140(s2) 0 Flat
                              MemberDecorate 140(s2) 1 Flat
                              MemberDecorate 140(s2) 2 Flat
                              MemberDecorate 140(s2) 3 Flat
               2:             TypeVoid
               3:             TypeFunction 2
               6:             TypeInt 32 1
               7:             TypeFloat 32
           8(s1):             TypeStruct 6(int) 7(float)
               9:             TypeVector 7(float) 4
          10(s2):             TypeStruct 6(int) 7(float) 8(s1) 9(fvec4)
              11:             TypePointer Function 10(s2)
          13(s1):             TypeStruct 6(int) 7(float)
          14(s2):             TypeStruct 6(int) 7(float) 13(s1) 9(fvec4)
          15(s1):             TypeStruct 6(int) 7(float)
          16(s3):             TypeStruct 14(s2) 6(int) 7(float) 15(s1)
              17:             TypePointer Input 16(s3)
        18(foo3):     17(ptr) Variable Input
              19:      6(int) Constant 0
              20:             TypePointer Input 14(s2)
              23:             TypePointer Input 6(int)
              26:             TypeBool
              30:      6(int) Constant 2
              31:      6(int) Constant 1
              32:    7(float) Constant 1065353216
              33:             TypePointer Function 7(float)
              35:             TypeInt 32 0
              36:     35(int) Constant 16
              37:             TypeArray 7(float) 36
              38:             TypePointer Function 37
              40:      6(int) Constant 4
              41:             TypeVector 7(float) 2
              42:             TypePointer Input 41(fvec2)
       43(coord):     42(ptr) Variable Input
              44:     35(int) Constant 0
              45:             TypePointer Input 7(float)
              49:     35(int) Constant 8
              50:             TypeArray 6(int) 49
              51:             TypePointer Function 50
              55:             TypePointer Function 6(int)
              72:      6(int) Constant 5
              85:      6(int) Constant 16
              89:    7(float) Constant 0
   93(condition):     23(ptr) Variable Input
              99:      6(int) Constant 3
             100:             TypePointer Input 9(fvec4)
      101(color):    100(ptr) Variable Input
             103:             TypePointer Function 9(fvec4)
             105:     35(int) Constant 1
             108:     35(int) Constant 2
             110:             TypePointer Output 9(fvec4)
111(gl_FragColor):    110(ptr) Variable Output
             128:             TypeImage 7(float) 2D sampled format:Unknown
             129:             TypeSampledImage 128
             130:             TypePointer UniformConstant 129
     131(samp2D):    130(ptr) Variable UniformConstant
         136(s1):             TypeStruct 6(int) 7(float)
             137:             TypePointer Input 136(s1)
        138(foo):    137(ptr) Variable Input
         139(s1):             TypeStruct 6(int) 7(float)
         140(s2):             TypeStruct 6(int) 7(float) 139(s1) 9(fvec4)
             141:             TypePointer Input 140(s2)
       142(foo2):    141(ptr) Variable Input
         4(main):           2 Function None 3
               5:             Label
     12(locals2):     11(ptr) Variable Function
 39(localFArray):     38(ptr) Variable Function
 52(localIArray):     51(ptr) Variable Function
           71(x):     55(ptr) Variable Function
  73(localArray):     38(ptr) Variable Function
           78(i):     55(ptr) Variable Function
           87(a):     38(ptr) Variable Function
              21:     20(ptr) AccessChain 18(foo3) 19
              22:      14(s2) Load 21
                              Store 12(locals2) 22
              24:     23(ptr) AccessChain 18(foo3) 19 19
              25:      6(int) Load 24
              27:    26(bool) SGreaterThan 25 19
                              SelectionMerge 29 None
                              BranchConditional 27 28 57
              28:               Label
              34:     33(ptr)   AccessChain 12(locals2) 30 31
                                Store 34 32
              46:     45(ptr)   AccessChain 43(coord) 44
              47:    7(float)   Load 46
              48:     33(ptr)   AccessChain 39(localFArray) 40
                                Store 48 47
              53:     23(ptr)   AccessChain 18(foo3) 19 19
              54:      6(int)   Load 53
              56:     55(ptr)   AccessChain 52(localIArray) 30
                                Store 56 54
                                Branch 29
              57:               Label
              58:     45(ptr)   AccessChain 43(coord) 44
              59:    7(float)   Load 58
              60:     33(ptr)   AccessChain 12(locals2) 30 31
                                Store 60 59
              61:     33(ptr)   AccessChain 39(localFArray) 40
                                Store 61 32
              62:     55(ptr)   AccessChain 52(localIArray) 30
                                Store 62 19
                                Branch 29
              29:             Label
              63:     55(ptr) AccessChain 52(localIArray) 30
              64:      6(int) Load 63
              65:    26(bool) IEqual 64 19
                              SelectionMerge 67 None
                              BranchConditional 65 66 67
              66:               Label
              68:     33(ptr)   AccessChain 39(localFArray) 40
              69:    7(float)   Load 68
              70:    7(float)   FAdd 69 32
                                Store 68 70
                                Branch 67
              67:             Label
                              Store 71(x) 72
              74:      6(int) Load 71(x)
              75:     45(ptr) AccessChain 43(coord) 44
              76:    7(float) Load 75
              77:     33(ptr) AccessChain 73(localArray) 74
                              Store 77 76
                              Store 78(i) 19
                              Branch 79
              79:             Label
                              LoopMerge 81 82 None
                              Branch 83
              83:             Label
              84:      6(int) Load 78(i)
              86:    26(bool) SLessThan 84 85
                              BranchConditional 86 80 81
              80:               Label
              88:      6(int)   Load 78(i)
              90:     33(ptr)   AccessChain 87(a) 88
                                Store 90 89
                                Branch 82
              82:               Label
              91:      6(int)   Load 78(i)
              92:      6(int)   IAdd 91 31
                                Store 78(i) 92
                                Branch 79
              81:             Label
              94:      6(int) Load 93(condition)
              95:    26(bool) IEqual 94 31
                              SelectionMerge 97 None
                              BranchConditional 95 96 97
              96:               Label
              98:          37   Load 73(localArray)
                                Store 87(a) 98
                                Branch 97
              97:             Label
             102:    9(fvec4) Load 101(color)
             104:    103(ptr) AccessChain 12(locals2) 99
                              Store 104 102
             106:     45(ptr) AccessChain 43(coord) 105
             107:    7(float) Load 106
             109:     33(ptr) AccessChain 12(locals2) 99 108
                              Store 109 107
             112:    103(ptr) AccessChain 12(locals2) 99
             113:    9(fvec4) Load 112
             114:     33(ptr) AccessChain 39(localFArray) 40
             115:    7(float) Load 114
             116:     33(ptr) AccessChain 12(locals2) 30 31
             117:    7(float) Load 116
             118:    7(float) FAdd 115 117
             119:      6(int) Load 71(x)
             120:     33(ptr) AccessChain 73(localArray) 119
             121:    7(float) Load 120
             122:    7(float) FAdd 118 121
             123:      6(int) Load 71(x)
             124:     33(ptr) AccessChain 87(a) 123
             125:    7(float) Load 124
             126:    7(float) FAdd 122 125
             127:    9(fvec4) VectorTimesScalar 113 126
             132:         129 Load 131(samp2D)
             133:   41(fvec2) Load 43(coord)
             134:    9(fvec4) ImageSampleImplicitLod 132 133
             135:    9(fvec4) FMul 127 134
                              Store 111(gl_FragColor) 135
                              Return
                              FunctionEnd