Setup dependent external sources
[platform/upstream/VK-GL-CTS.git] / external / glslang / src / Test / baseResults / hlsl.domain.1.tese.out
1 hlsl.domain.1.tese
2 Shader version: 500
3 input primitive = triangles
4 vertex spacing = none
5 triangle order = none
6 0:? Sequence
7 0:22  Function Definition: @main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11; ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
8 0:22    Function Parameters: 
9 0:22      'i' ( const (read only) 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
10 0:22      'tesscoord' ( in 3-component vector of float)
11 0:22      'pcf_data' ( in structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
12 0:?     Sequence
13 0:25      move second child to first child ( temp 4-component vector of float)
14 0:25        pos: direct index for structure ( temp 4-component vector of float)
15 0:25          'o' ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
16 0:25          Constant:
17 0:25            0 (const int)
18 0:25        add ( temp 4-component vector of float)
19 0:25          pos: direct index for structure ( temp 4-component vector of float)
20 0:25            direct index ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
21 0:25              'i' ( const (read only) 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
22 0:25              Constant:
23 0:25                0 (const int)
24 0:25            Constant:
25 0:25              0 (const int)
26 0:25          direct index ( temp float)
27 0:25            'tesscoord' ( in 3-component vector of float)
28 0:25            Constant:
29 0:25              0 (const int)
30 0:26      move second child to first child ( temp 3-component vector of float)
31 0:26        norm: direct index for structure ( temp 3-component vector of float)
32 0:26          'o' ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
33 0:26          Constant:
34 0:26            1 (const int)
35 0:26        add ( temp 3-component vector of float)
36 0:26          norm: direct index for structure ( temp 3-component vector of float)
37 0:26            direct index ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
38 0:26              'i' ( const (read only) 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
39 0:26              Constant:
40 0:26                0 (const int)
41 0:26            Constant:
42 0:26              1 (const int)
43 0:26          direct index ( temp float)
44 0:26            'tesscoord' ( in 3-component vector of float)
45 0:26            Constant:
46 0:26              1 (const int)
47 0:28      direct index ( temp float)
48 0:28        'tesscoord' ( in 3-component vector of float)
49 0:28        Constant:
50 0:28          2 (const int)
51 0:30      Branch: Return with expression
52 0:30        'o' ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
53 0:22  Function Definition: main( ( temp void)
54 0:22    Function Parameters: 
55 0:?     Sequence
56 0:22      move second child to first child ( temp 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
57 0:?         'i' ( temp 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
58 0:?         'i' (layout( location=0) in 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
59 0:22      move second child to first child ( temp 3-component vector of float)
60 0:?         'tesscoord' ( temp 3-component vector of float)
61 0:?         'tesscoord' ( patch in 3-component vector of float TessCoord)
62 0:22      Sequence
63 0:22        move second child to first child ( temp float)
64 0:22          direct index ( temp float)
65 0:22            flTessFactor: direct index for structure ( temp 3-element array of float)
66 0:?               'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
67 0:22              Constant:
68 0:22                0 (const int)
69 0:22            Constant:
70 0:22              0 (const int)
71 0:22          direct index ( patch in float TessLevelOuter)
72 0:?             'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
73 0:22            Constant:
74 0:22              0 (const int)
75 0:22        move second child to first child ( temp float)
76 0:22          direct index ( temp float)
77 0:22            flTessFactor: direct index for structure ( temp 3-element array of float)
78 0:?               'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
79 0:22              Constant:
80 0:22                0 (const int)
81 0:22            Constant:
82 0:22              1 (const int)
83 0:22          direct index ( patch in float TessLevelOuter)
84 0:?             'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
85 0:22            Constant:
86 0:22              1 (const int)
87 0:22        move second child to first child ( temp float)
88 0:22          direct index ( temp float)
89 0:22            flTessFactor: direct index for structure ( temp 3-element array of float)
90 0:?               'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
91 0:22              Constant:
92 0:22                0 (const int)
93 0:22            Constant:
94 0:22              2 (const int)
95 0:22          direct index ( patch in float TessLevelOuter)
96 0:?             'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
97 0:22            Constant:
98 0:22              2 (const int)
99 0:22        move second child to first child ( temp float)
100 0:22          flInsideTessFactor: direct index for structure ( temp float)
101 0:?             'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
102 0:22            Constant:
103 0:22              1 (const int)
104 0:22          direct index ( patch in float TessLevelInner)
105 0:?             'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
106 0:22            Constant:
107 0:22              0 (const int)
108 0:22      move second child to first child ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
109 0:?         '@entryPointOutput' (layout( location=0) out structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
110 0:22        Function Call: @main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11; ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
111 0:?           'i' ( temp 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
112 0:?           'tesscoord' ( temp 3-component vector of float)
113 0:?           'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
114 0:?   Linker Objects
115 0:?     '@entryPointOutput' (layout( location=0) out structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
116 0:?     'i' (layout( location=0) in 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
117 0:?     'tesscoord' ( patch in 3-component vector of float TessCoord)
118 0:?     'pcf_data' (layout( location=2) patch in structure{})
119 0:?     'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
120 0:?     'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
121
122
123 Linked tessellation evaluation stage:
124
125
126 Shader version: 500
127 input primitive = triangles
128 vertex spacing = none
129 triangle order = none
130 0:? Sequence
131 0:22  Function Definition: @main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11; ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
132 0:22    Function Parameters: 
133 0:22      'i' ( const (read only) 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
134 0:22      'tesscoord' ( in 3-component vector of float)
135 0:22      'pcf_data' ( in structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
136 0:?     Sequence
137 0:25      move second child to first child ( temp 4-component vector of float)
138 0:25        pos: direct index for structure ( temp 4-component vector of float)
139 0:25          'o' ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
140 0:25          Constant:
141 0:25            0 (const int)
142 0:25        add ( temp 4-component vector of float)
143 0:25          pos: direct index for structure ( temp 4-component vector of float)
144 0:25            direct index ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
145 0:25              'i' ( const (read only) 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
146 0:25              Constant:
147 0:25                0 (const int)
148 0:25            Constant:
149 0:25              0 (const int)
150 0:25          direct index ( temp float)
151 0:25            'tesscoord' ( in 3-component vector of float)
152 0:25            Constant:
153 0:25              0 (const int)
154 0:26      move second child to first child ( temp 3-component vector of float)
155 0:26        norm: direct index for structure ( temp 3-component vector of float)
156 0:26          'o' ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
157 0:26          Constant:
158 0:26            1 (const int)
159 0:26        add ( temp 3-component vector of float)
160 0:26          norm: direct index for structure ( temp 3-component vector of float)
161 0:26            direct index ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
162 0:26              'i' ( const (read only) 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
163 0:26              Constant:
164 0:26                0 (const int)
165 0:26            Constant:
166 0:26              1 (const int)
167 0:26          direct index ( temp float)
168 0:26            'tesscoord' ( in 3-component vector of float)
169 0:26            Constant:
170 0:26              1 (const int)
171 0:28      direct index ( temp float)
172 0:28        'tesscoord' ( in 3-component vector of float)
173 0:28        Constant:
174 0:28          2 (const int)
175 0:30      Branch: Return with expression
176 0:30        'o' ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
177 0:22  Function Definition: main( ( temp void)
178 0:22    Function Parameters: 
179 0:?     Sequence
180 0:22      move second child to first child ( temp 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
181 0:?         'i' ( temp 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
182 0:?         'i' (layout( location=0) in 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
183 0:22      move second child to first child ( temp 3-component vector of float)
184 0:?         'tesscoord' ( temp 3-component vector of float)
185 0:?         'tesscoord' ( patch in 3-component vector of float TessCoord)
186 0:22      Sequence
187 0:22        move second child to first child ( temp float)
188 0:22          direct index ( temp float)
189 0:22            flTessFactor: direct index for structure ( temp 3-element array of float)
190 0:?               'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
191 0:22              Constant:
192 0:22                0 (const int)
193 0:22            Constant:
194 0:22              0 (const int)
195 0:22          direct index ( patch in float TessLevelOuter)
196 0:?             'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
197 0:22            Constant:
198 0:22              0 (const int)
199 0:22        move second child to first child ( temp float)
200 0:22          direct index ( temp float)
201 0:22            flTessFactor: direct index for structure ( temp 3-element array of float)
202 0:?               'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
203 0:22              Constant:
204 0:22                0 (const int)
205 0:22            Constant:
206 0:22              1 (const int)
207 0:22          direct index ( patch in float TessLevelOuter)
208 0:?             'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
209 0:22            Constant:
210 0:22              1 (const int)
211 0:22        move second child to first child ( temp float)
212 0:22          direct index ( temp float)
213 0:22            flTessFactor: direct index for structure ( temp 3-element array of float)
214 0:?               'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
215 0:22              Constant:
216 0:22                0 (const int)
217 0:22            Constant:
218 0:22              2 (const int)
219 0:22          direct index ( patch in float TessLevelOuter)
220 0:?             'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
221 0:22            Constant:
222 0:22              2 (const int)
223 0:22        move second child to first child ( temp float)
224 0:22          flInsideTessFactor: direct index for structure ( temp float)
225 0:?             'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
226 0:22            Constant:
227 0:22              1 (const int)
228 0:22          direct index ( patch in float TessLevelInner)
229 0:?             'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
230 0:22            Constant:
231 0:22              0 (const int)
232 0:22      move second child to first child ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
233 0:?         '@entryPointOutput' (layout( location=0) out structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
234 0:22        Function Call: @main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11; ( temp structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
235 0:?           'i' ( temp 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
236 0:?           'tesscoord' ( temp 3-component vector of float)
237 0:?           'pcf_data' ( temp structure{ temp 3-element array of float flTessFactor,  temp float flInsideTessFactor})
238 0:?   Linker Objects
239 0:?     '@entryPointOutput' (layout( location=0) out structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
240 0:?     'i' (layout( location=0) in 3-element array of structure{ temp 4-component vector of float pos,  temp 3-component vector of float norm})
241 0:?     'tesscoord' ( patch in 3-component vector of float TessCoord)
242 0:?     'pcf_data' (layout( location=2) patch in structure{})
243 0:?     'pcf_data_flTessFactor' ( patch in 4-element array of float TessLevelOuter)
244 0:?     'pcf_data_flInsideTessFactor' ( patch in 2-element array of float TessLevelInner)
245
246 // Module Version 10000
247 // Generated by (magic number): 80001
248 // Id's are bound by 91
249
250                               Capability Tessellation
251                1:             ExtInstImport  "GLSL.std.450"
252                               MemoryModel Logical GLSL450
253                               EntryPoint TessellationEvaluation 4  "main" 51 55 61 76 81 90
254                               ExecutionMode 4 Triangles
255                               Source HLSL 500
256                               Name 4  "main"
257                               Name 9  "ds_in_t"
258                               MemberName 9(ds_in_t) 0  "pos"
259                               MemberName 9(ds_in_t) 1  "norm"
260                               Name 15  "pcf_in_t"
261                               MemberName 15(pcf_in_t) 0  "flTessFactor"
262                               MemberName 15(pcf_in_t) 1  "flInsideTessFactor"
263                               Name 17  "gs_in_t"
264                               MemberName 17(gs_in_t) 0  "pos"
265                               MemberName 17(gs_in_t) 1  "norm"
266                               Name 22  "@main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11;"
267                               Name 19  "i"
268                               Name 20  "tesscoord"
269                               Name 21  "pcf_data"
270                               Name 25  "o"
271                               Name 49  "i"
272                               Name 51  "i"
273                               Name 53  "tesscoord"
274                               Name 55  "tesscoord"
275                               Name 57  "pcf_data"
276                               Name 61  "pcf_data_flTessFactor"
277                               Name 76  "pcf_data_flInsideTessFactor"
278                               Name 81  "@entryPointOutput"
279                               Name 83  "param"
280                               Name 85  "param"
281                               Name 88  "pcf_in_t"
282                               Name 90  "pcf_data"
283                               Decorate 51(i) Location 0
284                               Decorate 55(tesscoord) Patch
285                               Decorate 55(tesscoord) BuiltIn TessCoord
286                               Decorate 61(pcf_data_flTessFactor) Patch
287                               Decorate 61(pcf_data_flTessFactor) BuiltIn TessLevelOuter
288                               Decorate 76(pcf_data_flInsideTessFactor) Patch
289                               Decorate 76(pcf_data_flInsideTessFactor) BuiltIn TessLevelInner
290                               Decorate 81(@entryPointOutput) Location 0
291                               Decorate 90(pcf_data) Patch
292                               Decorate 90(pcf_data) Location 2
293                2:             TypeVoid
294                3:             TypeFunction 2
295                6:             TypeFloat 32
296                7:             TypeVector 6(float) 4
297                8:             TypeVector 6(float) 3
298       9(ds_in_t):             TypeStruct 7(fvec4) 8(fvec3)
299               10:             TypeInt 32 0
300               11:     10(int) Constant 3
301               12:             TypeArray 9(ds_in_t) 11
302               13:             TypePointer Function 8(fvec3)
303               14:             TypeArray 6(float) 11
304     15(pcf_in_t):             TypeStruct 14 6(float)
305               16:             TypePointer Function 15(pcf_in_t)
306      17(gs_in_t):             TypeStruct 7(fvec4) 8(fvec3)
307               18:             TypeFunction 17(gs_in_t) 12 13(ptr) 16(ptr)
308               24:             TypePointer Function 17(gs_in_t)
309               26:             TypeInt 32 1
310               27:     26(int) Constant 0
311               29:     10(int) Constant 0
312               30:             TypePointer Function 6(float)
313               35:             TypePointer Function 7(fvec4)
314               37:     26(int) Constant 1
315               39:     10(int) Constant 1
316               48:             TypePointer Function 12
317               50:             TypePointer Input 12
318            51(i):     50(ptr) Variable Input
319               54:             TypePointer Input 8(fvec3)
320    55(tesscoord):     54(ptr) Variable Input
321               58:     10(int) Constant 4
322               59:             TypeArray 6(float) 58
323               60:             TypePointer Input 59
324 61(pcf_data_flTessFactor):     60(ptr) Variable Input
325               62:             TypePointer Input 6(float)
326               69:     26(int) Constant 2
327               73:     10(int) Constant 2
328               74:             TypeArray 6(float) 73
329               75:             TypePointer Input 74
330 76(pcf_data_flInsideTessFactor):     75(ptr) Variable Input
331               80:             TypePointer Output 17(gs_in_t)
332 81(@entryPointOutput):     80(ptr) Variable Output
333     88(pcf_in_t):             TypeStruct
334               89:             TypePointer Input 88(pcf_in_t)
335     90(pcf_data):     89(ptr) Variable Input
336          4(main):           2 Function None 3
337                5:             Label
338            49(i):     48(ptr) Variable Function
339    53(tesscoord):     13(ptr) Variable Function
340     57(pcf_data):     16(ptr) Variable Function
341        83(param):     13(ptr) Variable Function
342        85(param):     16(ptr) Variable Function
343               52:          12 Load 51(i)
344                               Store 49(i) 52
345               56:    8(fvec3) Load 55(tesscoord)
346                               Store 53(tesscoord) 56
347               63:     62(ptr) AccessChain 61(pcf_data_flTessFactor) 27
348               64:    6(float) Load 63
349               65:     30(ptr) AccessChain 57(pcf_data) 27 27
350                               Store 65 64
351               66:     62(ptr) AccessChain 61(pcf_data_flTessFactor) 37
352               67:    6(float) Load 66
353               68:     30(ptr) AccessChain 57(pcf_data) 27 37
354                               Store 68 67
355               70:     62(ptr) AccessChain 61(pcf_data_flTessFactor) 69
356               71:    6(float) Load 70
357               72:     30(ptr) AccessChain 57(pcf_data) 27 69
358                               Store 72 71
359               77:     62(ptr) AccessChain 76(pcf_data_flInsideTessFactor) 27
360               78:    6(float) Load 77
361               79:     30(ptr) AccessChain 57(pcf_data) 37
362                               Store 79 78
363               82:          12 Load 49(i)
364               84:    8(fvec3) Load 53(tesscoord)
365                               Store 83(param) 84
366               86:15(pcf_in_t) Load 57(pcf_data)
367                               Store 85(param) 86
368               87: 17(gs_in_t) FunctionCall 22(@main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11;) 82 83(param) 85(param)
369                               Store 81(@entryPointOutput) 87
370                               Return
371                               FunctionEnd
372 22(@main(struct-ds_in_t-vf4-vf31[3];vf3;struct-pcf_in_t-f1[3]-f11;): 17(gs_in_t) Function None 18
373            19(i):          12 FunctionParameter
374    20(tesscoord):     13(ptr) FunctionParameter
375     21(pcf_data):     16(ptr) FunctionParameter
376               23:             Label
377            25(o):     24(ptr) Variable Function
378               28:    7(fvec4) CompositeExtract 19(i) 0 0
379               31:     30(ptr) AccessChain 20(tesscoord) 29
380               32:    6(float) Load 31
381               33:    7(fvec4) CompositeConstruct 32 32 32 32
382               34:    7(fvec4) FAdd 28 33
383               36:     35(ptr) AccessChain 25(o) 27
384                               Store 36 34
385               38:    8(fvec3) CompositeExtract 19(i) 0 1
386               40:     30(ptr) AccessChain 20(tesscoord) 39
387               41:    6(float) Load 40
388               42:    8(fvec3) CompositeConstruct 41 41 41
389               43:    8(fvec3) FAdd 38 42
390               44:     13(ptr) AccessChain 25(o) 37
391                               Store 44 43
392               45: 17(gs_in_t) Load 25(o)
393                               ReturnValue 45
394                               FunctionEnd