Setup dependent external sources
[platform/upstream/VK-GL-CTS.git] / external / glslang / src / Test / baseResults / spv.texture.frag.out
1 spv.texture.frag
2 WARNING: 0:10: varying deprecated in version 130; may be removed in future release
3 WARNING: 0:11: varying deprecated in version 130; may be removed in future release
4 WARNING: 0:12: varying deprecated in version 130; may be removed in future release
5
6 // Module Version 10000
7 // Generated by (magic number): 80001
8 // Id's are bound by 305
9
10                               Capability Shader
11                               Capability Sampled1D
12                1:             ExtInstImport  "GLSL.std.450"
13                               MemoryModel Logical GLSL450
14                               EntryPoint Fragment 4  "main" 47 291 294 297 303 304
15                               ExecutionMode 4 OriginUpperLeft
16                               Source GLSL 140
17                               Name 4  "main"
18                               Name 8  "blendscale"
19                               Name 10  "bias"
20                               Name 12  "lod"
21                               Name 14  "proj"
22                               Name 15  "coords1D"
23                               Name 18  "coords3D"
24                               Name 24  "coords4D"
25                               Name 26  "color"
26                               Name 32  "texSampler1D"
27                               Name 47  "coords2D"
28                               Name 76  "texSampler2D"
29                               Name 104  "texSampler3D"
30                               Name 130  "texSamplerCube"
31                               Name 145  "shadowSampler1D"
32                               Name 164  "shadowSampler2D"
33                               Name 221  "iCoords2D"
34                               Name 226  "iLod"
35                               Name 236  "gradX"
36                               Name 239  "gradY"
37                               Name 291  "gl_FragColor"
38                               Name 294  "u"
39                               Name 297  "blend"
40                               Name 303  "scale"
41                               Name 304  "t"
42                               Decorate 32(texSampler1D) DescriptorSet 0
43                               Decorate 76(texSampler2D) DescriptorSet 0
44                               Decorate 104(texSampler3D) DescriptorSet 0
45                               Decorate 130(texSamplerCube) DescriptorSet 0
46                               Decorate 145(shadowSampler1D) DescriptorSet 0
47                               Decorate 164(shadowSampler2D) DescriptorSet 0
48                2:             TypeVoid
49                3:             TypeFunction 2
50                6:             TypeFloat 32
51                7:             TypePointer Function 6(float)
52                9:    6(float) Constant 1071971828
53               11:    6(float) Constant 1073741824
54               13:    6(float) Constant 1077936128
55               16:             TypeVector 6(float) 3
56               17:             TypePointer Function 16(fvec3)
57               19:    6(float) Constant 1076753334
58               20:    6(float) Constant 1079836148
59               21:   16(fvec3) ConstantComposite 9 19 20
60               22:             TypeVector 6(float) 4
61               23:             TypePointer Function 22(fvec4)
62               25:   22(fvec4) ConstantComposite 9 19 20 11
63               27:    6(float) Constant 0
64               28:   22(fvec4) ConstantComposite 27 27 27 27
65               29:             TypeImage 6(float) 1D sampled format:Unknown
66               30:             TypeSampledImage 29
67               31:             TypePointer UniformConstant 30
68 32(texSampler1D):     31(ptr) Variable UniformConstant
69               45:             TypeVector 6(float) 2
70               46:             TypePointer Input 45(fvec2)
71     47(coords2D):     46(ptr) Variable Input
72               73:             TypeImage 6(float) 2D sampled format:Unknown
73               74:             TypeSampledImage 73
74               75:             TypePointer UniformConstant 74
75 76(texSampler2D):     75(ptr) Variable UniformConstant
76              101:             TypeImage 6(float) 3D sampled format:Unknown
77              102:             TypeSampledImage 101
78              103:             TypePointer UniformConstant 102
79 104(texSampler3D):    103(ptr) Variable UniformConstant
80              127:             TypeImage 6(float) Cube sampled format:Unknown
81              128:             TypeSampledImage 127
82              129:             TypePointer UniformConstant 128
83 130(texSamplerCube):    129(ptr) Variable UniformConstant
84              142:             TypeImage 6(float) 1D depth sampled format:Unknown
85              143:             TypeSampledImage 142
86              144:             TypePointer UniformConstant 143
87 145(shadowSampler1D):    144(ptr) Variable UniformConstant
88              161:             TypeImage 6(float) 2D depth sampled format:Unknown
89              162:             TypeSampledImage 161
90              163:             TypePointer UniformConstant 162
91 164(shadowSampler2D):    163(ptr) Variable UniformConstant
92              218:             TypeInt 32 1
93              219:             TypeVector 218(int) 2
94              220:             TypePointer Function 219(ivec2)
95              222:    218(int) Constant 0
96              223:    218(int) Constant 5
97              224:  219(ivec2) ConstantComposite 222 223
98              225:             TypePointer Function 218(int)
99              227:    218(int) Constant 1
100              235:             TypePointer Function 45(fvec2)
101              264:    218(int) Constant 3
102              265:    218(int) Constant 4294967289
103              266:  219(ivec2) ConstantComposite 264 265
104              290:             TypePointer Output 22(fvec4)
105 291(gl_FragColor):    290(ptr) Variable Output
106              293:             TypePointer Input 22(fvec4)
107           294(u):    293(ptr) Variable Input
108              296:             TypePointer Input 6(float)
109       297(blend):    296(ptr) Variable Input
110       303(scale):     46(ptr) Variable Input
111           304(t):     46(ptr) Variable Input
112          4(main):           2 Function None 3
113                5:             Label
114    8(blendscale):      7(ptr) Variable Function
115         10(bias):      7(ptr) Variable Function
116          12(lod):      7(ptr) Variable Function
117         14(proj):      7(ptr) Variable Function
118     15(coords1D):      7(ptr) Variable Function
119     18(coords3D):     17(ptr) Variable Function
120     24(coords4D):     23(ptr) Variable Function
121        26(color):     23(ptr) Variable Function
122   221(iCoords2D):    220(ptr) Variable Function
123        226(iLod):    225(ptr) Variable Function
124       236(gradX):    235(ptr) Variable Function
125       239(gradY):    235(ptr) Variable Function
126                               Store 8(blendscale) 9
127                               Store 10(bias) 11
128                               Store 12(lod) 13
129                               Store 14(proj) 11
130                               Store 15(coords1D) 9
131                               Store 18(coords3D) 21
132                               Store 24(coords4D) 25
133                               Store 26(color) 28
134               33:          30 Load 32(texSampler1D)
135               34:    6(float) Load 15(coords1D)
136               35:   22(fvec4) ImageSampleImplicitLod 33 34
137               36:   22(fvec4) Load 26(color)
138               37:   22(fvec4) FAdd 36 35
139                               Store 26(color) 37
140               38:          30 Load 32(texSampler1D)
141               39:    6(float) Load 15(coords1D)
142               40:    6(float) Load 10(bias)
143               41:   22(fvec4) ImageSampleImplicitLod 38 39 Bias 40
144               42:   22(fvec4) Load 26(color)
145               43:   22(fvec4) FAdd 42 41
146                               Store 26(color) 43
147               44:          30 Load 32(texSampler1D)
148               48:   45(fvec2) Load 47(coords2D)
149               49:   22(fvec4) ImageSampleProjImplicitLod 44 48
150               50:   22(fvec4) Load 26(color)
151               51:   22(fvec4) FAdd 50 49
152                               Store 26(color) 51
153               52:          30 Load 32(texSampler1D)
154               53:   22(fvec4) Load 24(coords4D)
155               54:    6(float) CompositeExtract 53 3
156               55:   22(fvec4) CompositeInsert 54 53 1
157               56:   22(fvec4) ImageSampleProjImplicitLod 52 55
158               57:   22(fvec4) Load 26(color)
159               58:   22(fvec4) FAdd 57 56
160                               Store 26(color) 58
161               59:          30 Load 32(texSampler1D)
162               60:   45(fvec2) Load 47(coords2D)
163               61:    6(float) Load 10(bias)
164               62:   22(fvec4) ImageSampleProjImplicitLod 59 60 Bias 61
165               63:   22(fvec4) Load 26(color)
166               64:   22(fvec4) FAdd 63 62
167                               Store 26(color) 64
168               65:          30 Load 32(texSampler1D)
169               66:   22(fvec4) Load 24(coords4D)
170               67:    6(float) Load 10(bias)
171               68:    6(float) CompositeExtract 66 3
172               69:   22(fvec4) CompositeInsert 68 66 1
173               70:   22(fvec4) ImageSampleProjImplicitLod 65 69 Bias 67
174               71:   22(fvec4) Load 26(color)
175               72:   22(fvec4) FAdd 71 70
176                               Store 26(color) 72
177               77:          74 Load 76(texSampler2D)
178               78:   45(fvec2) Load 47(coords2D)
179               79:   22(fvec4) ImageSampleImplicitLod 77 78
180               80:   22(fvec4) Load 26(color)
181               81:   22(fvec4) FAdd 80 79
182                               Store 26(color) 81
183               82:          74 Load 76(texSampler2D)
184               83:   45(fvec2) Load 47(coords2D)
185               84:    6(float) Load 10(bias)
186               85:   22(fvec4) ImageSampleImplicitLod 82 83 Bias 84
187               86:   22(fvec4) Load 26(color)
188               87:   22(fvec4) FAdd 86 85
189                               Store 26(color) 87
190               88:          74 Load 76(texSampler2D)
191               89:   16(fvec3) Load 18(coords3D)
192               90:   22(fvec4) ImageSampleProjImplicitLod 88 89
193               91:   22(fvec4) Load 26(color)
194               92:   22(fvec4) FAdd 91 90
195                               Store 26(color) 92
196               93:          74 Load 76(texSampler2D)
197               94:   22(fvec4) Load 24(coords4D)
198               95:    6(float) Load 10(bias)
199               96:    6(float) CompositeExtract 94 3
200               97:   22(fvec4) CompositeInsert 96 94 2
201               98:   22(fvec4) ImageSampleProjImplicitLod 93 97 Bias 95
202               99:   22(fvec4) Load 26(color)
203              100:   22(fvec4) FAdd 99 98
204                               Store 26(color) 100
205              105:         102 Load 104(texSampler3D)
206              106:   16(fvec3) Load 18(coords3D)
207              107:   22(fvec4) ImageSampleImplicitLod 105 106
208              108:   22(fvec4) Load 26(color)
209              109:   22(fvec4) FAdd 108 107
210                               Store 26(color) 109
211              110:         102 Load 104(texSampler3D)
212              111:   16(fvec3) Load 18(coords3D)
213              112:    6(float) Load 10(bias)
214              113:   22(fvec4) ImageSampleImplicitLod 110 111 Bias 112
215              114:   22(fvec4) Load 26(color)
216              115:   22(fvec4) FAdd 114 113
217                               Store 26(color) 115
218              116:         102 Load 104(texSampler3D)
219              117:   22(fvec4) Load 24(coords4D)
220              118:   22(fvec4) ImageSampleProjImplicitLod 116 117
221              119:   22(fvec4) Load 26(color)
222              120:   22(fvec4) FAdd 119 118
223                               Store 26(color) 120
224              121:         102 Load 104(texSampler3D)
225              122:   22(fvec4) Load 24(coords4D)
226              123:    6(float) Load 10(bias)
227              124:   22(fvec4) ImageSampleProjImplicitLod 121 122 Bias 123
228              125:   22(fvec4) Load 26(color)
229              126:   22(fvec4) FAdd 125 124
230                               Store 26(color) 126
231              131:         128 Load 130(texSamplerCube)
232              132:   16(fvec3) Load 18(coords3D)
233              133:   22(fvec4) ImageSampleImplicitLod 131 132
234              134:   22(fvec4) Load 26(color)
235              135:   22(fvec4) FAdd 134 133
236                               Store 26(color) 135
237              136:         128 Load 130(texSamplerCube)
238              137:   16(fvec3) Load 18(coords3D)
239              138:    6(float) Load 10(bias)
240              139:   22(fvec4) ImageSampleImplicitLod 136 137 Bias 138
241              140:   22(fvec4) Load 26(color)
242              141:   22(fvec4) FAdd 140 139
243                               Store 26(color) 141
244              146:         143 Load 145(shadowSampler1D)
245              147:   16(fvec3) Load 18(coords3D)
246              148:    6(float) CompositeExtract 147 2
247              149:    6(float) ImageSampleDrefImplicitLod 146 147 148
248              150:   22(fvec4) Load 26(color)
249              151:   22(fvec4) CompositeConstruct 149 149 149 149
250              152:   22(fvec4) FAdd 150 151
251                               Store 26(color) 152
252              153:         143 Load 145(shadowSampler1D)
253              154:   16(fvec3) Load 18(coords3D)
254              155:    6(float) Load 10(bias)
255              156:    6(float) CompositeExtract 154 2
256              157:    6(float) ImageSampleDrefImplicitLod 153 154 156 Bias 155
257              158:   22(fvec4) Load 26(color)
258              159:   22(fvec4) CompositeConstruct 157 157 157 157
259              160:   22(fvec4) FAdd 158 159
260                               Store 26(color) 160
261              165:         162 Load 164(shadowSampler2D)
262              166:   16(fvec3) Load 18(coords3D)
263              167:    6(float) CompositeExtract 166 2
264              168:    6(float) ImageSampleDrefImplicitLod 165 166 167
265              169:   22(fvec4) Load 26(color)
266              170:   22(fvec4) CompositeConstruct 168 168 168 168
267              171:   22(fvec4) FAdd 169 170
268                               Store 26(color) 171
269              172:         162 Load 164(shadowSampler2D)
270              173:   16(fvec3) Load 18(coords3D)
271              174:    6(float) Load 10(bias)
272              175:    6(float) CompositeExtract 173 2
273              176:    6(float) ImageSampleDrefImplicitLod 172 173 175 Bias 174
274              177:   22(fvec4) Load 26(color)
275              178:   22(fvec4) CompositeConstruct 176 176 176 176
276              179:   22(fvec4) FAdd 177 178
277                               Store 26(color) 179
278              180:         143 Load 145(shadowSampler1D)
279              181:   22(fvec4) Load 24(coords4D)
280              182:    6(float) CompositeExtract 181 2
281              183:    6(float) CompositeExtract 181 3
282              184:   22(fvec4) CompositeInsert 183 181 1
283              185:    6(float) ImageSampleProjDrefImplicitLod 180 184 182
284              186:   22(fvec4) Load 26(color)
285              187:   22(fvec4) CompositeConstruct 185 185 185 185
286              188:   22(fvec4) FAdd 186 187
287                               Store 26(color) 188
288              189:         143 Load 145(shadowSampler1D)
289              190:   22(fvec4) Load 24(coords4D)
290              191:    6(float) Load 10(bias)
291              192:    6(float) CompositeExtract 190 2
292              193:    6(float) CompositeExtract 190 3
293              194:   22(fvec4) CompositeInsert 193 190 1
294              195:    6(float) ImageSampleProjDrefImplicitLod 189 194 192 Bias 191
295              196:   22(fvec4) Load 26(color)
296              197:   22(fvec4) CompositeConstruct 195 195 195 195
297              198:   22(fvec4) FAdd 196 197
298                               Store 26(color) 198
299              199:         162 Load 164(shadowSampler2D)
300              200:   22(fvec4) Load 24(coords4D)
301              201:    6(float) CompositeExtract 200 2
302              202:    6(float) CompositeExtract 200 3
303              203:   22(fvec4) CompositeInsert 202 200 2
304              204:    6(float) ImageSampleProjDrefImplicitLod 199 203 201
305              205:   22(fvec4) Load 26(color)
306              206:   22(fvec4) CompositeConstruct 204 204 204 204
307              207:   22(fvec4) FAdd 205 206
308                               Store 26(color) 207
309              208:         162 Load 164(shadowSampler2D)
310              209:   22(fvec4) Load 24(coords4D)
311              210:    6(float) Load 10(bias)
312              211:    6(float) CompositeExtract 209 2
313              212:    6(float) CompositeExtract 209 3
314              213:   22(fvec4) CompositeInsert 212 209 2
315              214:    6(float) ImageSampleProjDrefImplicitLod 208 213 211 Bias 210
316              215:   22(fvec4) Load 26(color)
317              216:   22(fvec4) CompositeConstruct 214 214 214 214
318              217:   22(fvec4) FAdd 215 216
319                               Store 26(color) 217
320                               Store 221(iCoords2D) 224
321                               Store 226(iLod) 227
322              228:          74 Load 76(texSampler2D)
323              229:  219(ivec2) Load 221(iCoords2D)
324              230:    218(int) Load 226(iLod)
325              231:          73 Image 228
326              232:   22(fvec4) ImageFetch 231 229 Lod 230
327              233:   22(fvec4) Load 26(color)
328              234:   22(fvec4) FAdd 233 232
329                               Store 26(color) 234
330              237:   45(fvec2) Load 47(coords2D)
331              238:   45(fvec2) DPdx 237
332                               Store 236(gradX) 238
333              240:   45(fvec2) Load 47(coords2D)
334              241:   45(fvec2) DPdy 240
335                               Store 239(gradY) 241
336              242:          74 Load 76(texSampler2D)
337              243:   45(fvec2) Load 47(coords2D)
338              244:   45(fvec2) Load 236(gradX)
339              245:   45(fvec2) Load 239(gradY)
340              246:   22(fvec4) ImageSampleExplicitLod 242 243 Grad 244 245
341              247:   22(fvec4) Load 26(color)
342              248:   22(fvec4) FAdd 247 246
343                               Store 26(color) 248
344              249:          74 Load 76(texSampler2D)
345              250:   45(fvec2) Load 47(coords2D)
346              251:    6(float) Load 14(proj)
347              252:    6(float) CompositeExtract 250 0
348              253:    6(float) CompositeExtract 250 1
349              254:   16(fvec3) CompositeConstruct 252 253 251
350              255:   45(fvec2) Load 236(gradX)
351              256:   45(fvec2) Load 239(gradY)
352              257:   22(fvec4) ImageSampleProjExplicitLod 249 254 Grad 255 256
353              258:   22(fvec4) Load 26(color)
354              259:   22(fvec4) FAdd 258 257
355                               Store 26(color) 259
356              260:          74 Load 76(texSampler2D)
357              261:   45(fvec2) Load 47(coords2D)
358              262:   45(fvec2) Load 236(gradX)
359              263:   45(fvec2) Load 239(gradY)
360              267:   22(fvec4) ImageSampleExplicitLod 260 261 Grad ConstOffset 262 263 266
361              268:   22(fvec4) Load 26(color)
362              269:   22(fvec4) FAdd 268 267
363                               Store 26(color) 269
364              270:          74 Load 76(texSampler2D)
365              271:   16(fvec3) Load 18(coords3D)
366              272:   45(fvec2) Load 236(gradX)
367              273:   45(fvec2) Load 239(gradY)
368              274:   22(fvec4) ImageSampleProjExplicitLod 270 271 Grad ConstOffset 272 273 266
369              275:   22(fvec4) Load 26(color)
370              276:   22(fvec4) FAdd 275 274
371                               Store 26(color) 276
372              277:         162 Load 164(shadowSampler2D)
373              278:   45(fvec2) Load 47(coords2D)
374              279:    6(float) Load 12(lod)
375              280:    6(float) CompositeExtract 278 0
376              281:    6(float) CompositeExtract 278 1
377              282:   16(fvec3) CompositeConstruct 280 281 279
378              283:   45(fvec2) Load 236(gradX)
379              284:   45(fvec2) Load 239(gradY)
380              285:    6(float) CompositeExtract 282 2
381              286:    6(float) ImageSampleDrefExplicitLod 277 282 285 Grad 283 284
382              287:   22(fvec4) Load 26(color)
383              288:   22(fvec4) CompositeConstruct 286 286 286 286
384              289:   22(fvec4) FAdd 287 288
385                               Store 26(color) 289
386              292:   22(fvec4) Load 26(color)
387              295:   22(fvec4) Load 294(u)
388              298:    6(float) Load 297(blend)
389              299:    6(float) Load 8(blendscale)
390              300:    6(float) FMul 298 299
391              301:   22(fvec4) CompositeConstruct 300 300 300 300
392              302:   22(fvec4) ExtInst 1(GLSL.std.450) 46(FMix) 292 295 301
393                               Store 291(gl_FragColor) 302
394                               Return
395                               FunctionEnd