GLSL output: Removed fixed-size buffer; fixes #769.
[platform/upstream/glslang.git] / Test / baseResults / hlsl.hull.1.tesc.out
1 hlsl.hull.1.tesc
2 Shader version: 450
3 vertices = 4
4 0:? Sequence
5 0:26  Function Definition: @main(struct-VS_OUT-vf31[4];u1; ( temp structure{ temp 3-component vector of float cpoint})
6 0:26    Function Parameters: 
7 0:26      'ip' ( in 4-element array of structure{ temp 3-component vector of float cpoint})
8 0:26      'm_cpid' ( in uint)
9 0:?     Sequence
10 0:28      move second child to first child ( temp 3-component vector of float)
11 0:28        cpoint: direct index for structure ( temp 3-component vector of float)
12 0:28          'output' ( temp structure{ temp 3-component vector of float cpoint})
13 0:28          Constant:
14 0:28            0 (const int)
15 0:28        cpoint: direct index for structure ( temp 3-component vector of float)
16 0:28          direct index ( temp structure{ temp 3-component vector of float cpoint})
17 0:28            'ip' ( in 4-element array of structure{ temp 3-component vector of float cpoint})
18 0:28            Constant:
19 0:28              0 (const int)
20 0:28          Constant:
21 0:28            0 (const int)
22 0:29      Branch: Return with expression
23 0:29        'output' ( temp structure{ temp 3-component vector of float cpoint})
24 0:26  Function Definition: main( ( temp void)
25 0:26    Function Parameters: 
26 0:?     Sequence
27 0:26      move second child to first child ( temp 4-element array of structure{ temp 3-component vector of float cpoint})
28 0:?         'ip' ( temp 4-element array of structure{ temp 3-component vector of float cpoint})
29 0:?         'ip' (layout( location=0) in 4-element array of structure{ temp 3-component vector of float cpoint})
30 0:26      move second child to first child ( temp uint)
31 0:?         'm_cpid' ( temp uint)
32 0:?         'm_cpid' ( in uint InvocationID)
33 0:26      move second child to first child ( temp structure{ temp 3-component vector of float cpoint})
34 0:?         '@entryPointOutput' (layout( location=0) out structure{ temp 3-component vector of float cpoint})
35 0:26        Function Call: @main(struct-VS_OUT-vf31[4];u1; ( temp structure{ temp 3-component vector of float cpoint})
36 0:?           'ip' ( temp 4-element array of structure{ temp 3-component vector of float cpoint})
37 0:?           'm_cpid' ( temp uint)
38 0:?       Barrier ( temp void)
39 0:?       Test condition and select ( temp void)
40 0:?         Condition
41 0:?         Compare Equal ( temp bool)
42 0:?           'm_cpid' ( in uint InvocationID)
43 0:?           Constant:
44 0:?             0 (const int)
45 0:?         true case
46 0:?         Sequence
47 0:?           move second child to first child ( temp structure{ temp 2-element array of float edges})
48 0:?             '@patchConstantResult' ( temp structure{ temp 2-element array of float edges})
49 0:?             Function Call: PCF(u1; ( temp structure{ temp 2-element array of float edges})
50 0:?               'pid' ( in uint PrimitiveID)
51 0:?           Sequence
52 0:?             move second child to first child ( temp float)
53 0:?               direct index ( out float TessLevelOuter)
54 0:?                 '@patchConstantOutput_edges' ( out 2-element array of float TessLevelOuter)
55 0:?                 Constant:
56 0:?                   0 (const int)
57 0:?               direct index ( temp float)
58 0:?                 edges: direct index for structure ( temp 2-element array of float)
59 0:?                   '@patchConstantResult' ( temp structure{ temp 2-element array of float edges})
60 0:?                   Constant:
61 0:?                     0 (const int)
62 0:?                 Constant:
63 0:?                   0 (const int)
64 0:?             move second child to first child ( temp float)
65 0:?               direct index ( out float TessLevelOuter)
66 0:?                 '@patchConstantOutput_edges' ( out 2-element array of float TessLevelOuter)
67 0:?                 Constant:
68 0:?                   1 (const int)
69 0:?               direct index ( temp float)
70 0:?                 edges: direct index for structure ( temp 2-element array of float)
71 0:?                   '@patchConstantResult' ( temp structure{ temp 2-element array of float edges})
72 0:?                   Constant:
73 0:?                     0 (const int)
74 0:?                 Constant:
75 0:?                   1 (const int)
76 0:33  Function Definition: PCF(u1; ( temp structure{ temp 2-element array of float edges})
77 0:33    Function Parameters: 
78 0:33      'pid' ( in uint)
79 0:?     Sequence
80 0:36      move second child to first child ( temp float)
81 0:36        direct index ( temp float)
82 0:36          edges: direct index for structure ( temp 2-element array of float)
83 0:36            'output' ( temp structure{ temp 2-element array of float edges})
84 0:36            Constant:
85 0:36              0 (const int)
86 0:36          Constant:
87 0:36            0 (const int)
88 0:36        Constant:
89 0:36          2.000000
90 0:37      move second child to first child ( temp float)
91 0:37        direct index ( temp float)
92 0:37          edges: direct index for structure ( temp 2-element array of float)
93 0:37            'output' ( temp structure{ temp 2-element array of float edges})
94 0:37            Constant:
95 0:37              0 (const int)
96 0:37          Constant:
97 0:37            1 (const int)
98 0:37        Constant:
99 0:37          8.000000
100 0:38      Branch: Return with expression
101 0:38        'output' ( temp structure{ temp 2-element array of float edges})
102 0:?   Linker Objects
103 0:?     '@entryPointOutput' (layout( location=0) out structure{ temp 3-component vector of float cpoint})
104 0:?     'ip' (layout( location=0) in 4-element array of structure{ temp 3-component vector of float cpoint})
105 0:?     'm_cpid' ( in uint InvocationID)
106 0:?     'pid' ( in uint PrimitiveID)
107 0:?     '@patchConstantOutput_edges' ( out 2-element array of float TessLevelOuter)
108
109
110 Linked tessellation control stage:
111
112
113 Shader version: 450
114 vertices = 4
115 0:? Sequence
116 0:26  Function Definition: @main(struct-VS_OUT-vf31[4];u1; ( temp structure{ temp 3-component vector of float cpoint})
117 0:26    Function Parameters: 
118 0:26      'ip' ( in 4-element array of structure{ temp 3-component vector of float cpoint})
119 0:26      'm_cpid' ( in uint)
120 0:?     Sequence
121 0:28      move second child to first child ( temp 3-component vector of float)
122 0:28        cpoint: direct index for structure ( temp 3-component vector of float)
123 0:28          'output' ( temp structure{ temp 3-component vector of float cpoint})
124 0:28          Constant:
125 0:28            0 (const int)
126 0:28        cpoint: direct index for structure ( temp 3-component vector of float)
127 0:28          direct index ( temp structure{ temp 3-component vector of float cpoint})
128 0:28            'ip' ( in 4-element array of structure{ temp 3-component vector of float cpoint})
129 0:28            Constant:
130 0:28              0 (const int)
131 0:28          Constant:
132 0:28            0 (const int)
133 0:29      Branch: Return with expression
134 0:29        'output' ( temp structure{ temp 3-component vector of float cpoint})
135 0:26  Function Definition: main( ( temp void)
136 0:26    Function Parameters: 
137 0:?     Sequence
138 0:26      move second child to first child ( temp 4-element array of structure{ temp 3-component vector of float cpoint})
139 0:?         'ip' ( temp 4-element array of structure{ temp 3-component vector of float cpoint})
140 0:?         'ip' (layout( location=0) in 4-element array of structure{ temp 3-component vector of float cpoint})
141 0:26      move second child to first child ( temp uint)
142 0:?         'm_cpid' ( temp uint)
143 0:?         'm_cpid' ( in uint InvocationID)
144 0:26      move second child to first child ( temp structure{ temp 3-component vector of float cpoint})
145 0:?         '@entryPointOutput' (layout( location=0) out structure{ temp 3-component vector of float cpoint})
146 0:26        Function Call: @main(struct-VS_OUT-vf31[4];u1; ( temp structure{ temp 3-component vector of float cpoint})
147 0:?           'ip' ( temp 4-element array of structure{ temp 3-component vector of float cpoint})
148 0:?           'm_cpid' ( temp uint)
149 0:?       Barrier ( temp void)
150 0:?       Test condition and select ( temp void)
151 0:?         Condition
152 0:?         Compare Equal ( temp bool)
153 0:?           'm_cpid' ( in uint InvocationID)
154 0:?           Constant:
155 0:?             0 (const int)
156 0:?         true case
157 0:?         Sequence
158 0:?           move second child to first child ( temp structure{ temp 2-element array of float edges})
159 0:?             '@patchConstantResult' ( temp structure{ temp 2-element array of float edges})
160 0:?             Function Call: PCF(u1; ( temp structure{ temp 2-element array of float edges})
161 0:?               'pid' ( in uint PrimitiveID)
162 0:?           Sequence
163 0:?             move second child to first child ( temp float)
164 0:?               direct index ( out float TessLevelOuter)
165 0:?                 '@patchConstantOutput_edges' ( out 2-element array of float TessLevelOuter)
166 0:?                 Constant:
167 0:?                   0 (const int)
168 0:?               direct index ( temp float)
169 0:?                 edges: direct index for structure ( temp 2-element array of float)
170 0:?                   '@patchConstantResult' ( temp structure{ temp 2-element array of float edges})
171 0:?                   Constant:
172 0:?                     0 (const int)
173 0:?                 Constant:
174 0:?                   0 (const int)
175 0:?             move second child to first child ( temp float)
176 0:?               direct index ( out float TessLevelOuter)
177 0:?                 '@patchConstantOutput_edges' ( out 2-element array of float TessLevelOuter)
178 0:?                 Constant:
179 0:?                   1 (const int)
180 0:?               direct index ( temp float)
181 0:?                 edges: direct index for structure ( temp 2-element array of float)
182 0:?                   '@patchConstantResult' ( temp structure{ temp 2-element array of float edges})
183 0:?                   Constant:
184 0:?                     0 (const int)
185 0:?                 Constant:
186 0:?                   1 (const int)
187 0:33  Function Definition: PCF(u1; ( temp structure{ temp 2-element array of float edges})
188 0:33    Function Parameters: 
189 0:33      'pid' ( in uint)
190 0:?     Sequence
191 0:36      move second child to first child ( temp float)
192 0:36        direct index ( temp float)
193 0:36          edges: direct index for structure ( temp 2-element array of float)
194 0:36            'output' ( temp structure{ temp 2-element array of float edges})
195 0:36            Constant:
196 0:36              0 (const int)
197 0:36          Constant:
198 0:36            0 (const int)
199 0:36        Constant:
200 0:36          2.000000
201 0:37      move second child to first child ( temp float)
202 0:37        direct index ( temp float)
203 0:37          edges: direct index for structure ( temp 2-element array of float)
204 0:37            'output' ( temp structure{ temp 2-element array of float edges})
205 0:37            Constant:
206 0:37              0 (const int)
207 0:37          Constant:
208 0:37            1 (const int)
209 0:37        Constant:
210 0:37          8.000000
211 0:38      Branch: Return with expression
212 0:38        'output' ( temp structure{ temp 2-element array of float edges})
213 0:?   Linker Objects
214 0:?     '@entryPointOutput' (layout( location=0) out structure{ temp 3-component vector of float cpoint})
215 0:?     'ip' (layout( location=0) in 4-element array of structure{ temp 3-component vector of float cpoint})
216 0:?     'm_cpid' ( in uint InvocationID)
217 0:?     'pid' ( in uint PrimitiveID)
218 0:?     '@patchConstantOutput_edges' ( out 2-element array of float TessLevelOuter)
219
220 // Module Version 10000
221 // Generated by (magic number): 80001
222 // Id's are bound by 85
223
224                               Capability Tessellation
225                1:             ExtInstImport  "GLSL.std.450"
226                               MemoryModel Logical GLSL450
227                               EntryPoint TessellationControl 4  "main" 40 44 47 62 67
228                               ExecutionMode 4 OutputVertices 4
229                               Name 4  "main"
230                               Name 8  "VS_OUT"
231                               MemberName 8(VS_OUT) 0  "cpoint"
232                               Name 14  "HS_OUT"
233                               MemberName 14(HS_OUT) 0  "cpoint"
234                               Name 18  "@main(struct-VS_OUT-vf31[4];u1;"
235                               Name 16  "ip"
236                               Name 17  "m_cpid"
237                               Name 22  "HS_CONSTANT_OUT"
238                               MemberName 22(HS_CONSTANT_OUT) 0  "edges"
239                               Name 25  "PCF(u1;"
240                               Name 24  "pid"
241                               Name 28  "output"
242                               Name 38  "ip"
243                               Name 40  "ip"
244                               Name 42  "m_cpid"
245                               Name 44  "m_cpid"
246                               Name 47  "@entryPointOutput"
247                               Name 48  "param"
248                               Name 50  "param"
249                               Name 61  "@patchConstantResult"
250                               Name 62  "pid"
251                               Name 63  "param"
252                               Name 67  "@patchConstantOutput_edges"
253                               Name 77  "output"
254                               Decorate 40(ip) Location 0
255                               Decorate 44(m_cpid) BuiltIn InvocationId
256                               Decorate 47(@entryPointOutput) Location 0
257                               Decorate 62(pid) BuiltIn PrimitiveId
258                               Decorate 67(@patchConstantOutput_edges) BuiltIn TessLevelOuter
259                2:             TypeVoid
260                3:             TypeFunction 2
261                6:             TypeFloat 32
262                7:             TypeVector 6(float) 3
263        8(VS_OUT):             TypeStruct 7(fvec3)
264                9:             TypeInt 32 0
265               10:      9(int) Constant 4
266               11:             TypeArray 8(VS_OUT) 10
267               12:             TypePointer Function 11
268               13:             TypePointer Function 9(int)
269       14(HS_OUT):             TypeStruct 7(fvec3)
270               15:             TypeFunction 14(HS_OUT) 12(ptr) 13(ptr)
271               20:      9(int) Constant 2
272               21:             TypeArray 6(float) 20
273 22(HS_CONSTANT_OUT):             TypeStruct 21
274               23:             TypeFunction 22(HS_CONSTANT_OUT) 13(ptr)
275               27:             TypePointer Function 14(HS_OUT)
276               29:             TypeInt 32 1
277               30:     29(int) Constant 0
278               31:             TypePointer Function 7(fvec3)
279               39:             TypePointer Input 11
280           40(ip):     39(ptr) Variable Input
281               43:             TypePointer Input 9(int)
282       44(m_cpid):     43(ptr) Variable Input
283               46:             TypePointer Output 14(HS_OUT)
284 47(@entryPointOutput):     46(ptr) Variable Output
285               53:      9(int) Constant 1
286               54:      9(int) Constant 0
287               56:             TypeBool
288               60:             TypePointer Function 22(HS_CONSTANT_OUT)
289          62(pid):     43(ptr) Variable Input
290               66:             TypePointer Output 21
291 67(@patchConstantOutput_edges):     66(ptr) Variable Output
292               68:             TypePointer Function 6(float)
293               71:             TypePointer Output 6(float)
294               73:     29(int) Constant 1
295               78:    6(float) Constant 1073741824
296               80:    6(float) Constant 1090519040
297          4(main):           2 Function None 3
298                5:             Label
299           38(ip):     12(ptr) Variable Function
300       42(m_cpid):     13(ptr) Variable Function
301        48(param):     12(ptr) Variable Function
302        50(param):     13(ptr) Variable Function
303 61(@patchConstantResult):     60(ptr) Variable Function
304        63(param):     13(ptr) Variable Function
305               41:          11 Load 40(ip)
306                               Store 38(ip) 41
307               45:      9(int) Load 44(m_cpid)
308                               Store 42(m_cpid) 45
309               49:          11 Load 38(ip)
310                               Store 48(param) 49
311               51:      9(int) Load 42(m_cpid)
312                               Store 50(param) 51
313               52:  14(HS_OUT) FunctionCall 18(@main(struct-VS_OUT-vf31[4];u1;) 48(param) 50(param)
314                               Store 47(@entryPointOutput) 52
315                               ControlBarrier 20 53 54
316               55:      9(int) Load 44(m_cpid)
317               57:    56(bool) IEqual 55 30
318                               SelectionMerge 59 None
319                               BranchConditional 57 58 59
320               58:               Label
321               64:      9(int)   Load 62(pid)
322                                 Store 63(param) 64
323               65:22(HS_CONSTANT_OUT)   FunctionCall 25(PCF(u1;) 63(param)
324                                 Store 61(@patchConstantResult) 65
325               69:     68(ptr)   AccessChain 61(@patchConstantResult) 30 30
326               70:    6(float)   Load 69
327               72:     71(ptr)   AccessChain 67(@patchConstantOutput_edges) 30
328                                 Store 72 70
329               74:     68(ptr)   AccessChain 61(@patchConstantResult) 30 73
330               75:    6(float)   Load 74
331               76:     71(ptr)   AccessChain 67(@patchConstantOutput_edges) 73
332                                 Store 76 75
333                                 Branch 59
334               59:             Label
335                               Return
336                               FunctionEnd
337 18(@main(struct-VS_OUT-vf31[4];u1;):  14(HS_OUT) Function None 15
338           16(ip):     12(ptr) FunctionParameter
339       17(m_cpid):     13(ptr) FunctionParameter
340               19:             Label
341       28(output):     27(ptr) Variable Function
342               32:     31(ptr) AccessChain 16(ip) 30 30
343               33:    7(fvec3) Load 32
344               34:     31(ptr) AccessChain 28(output) 30
345                               Store 34 33
346               35:  14(HS_OUT) Load 28(output)
347                               ReturnValue 35
348                               FunctionEnd
349      25(PCF(u1;):22(HS_CONSTANT_OUT) Function None 23
350          24(pid):     13(ptr) FunctionParameter
351               26:             Label
352       77(output):     60(ptr) Variable Function
353               79:     68(ptr) AccessChain 77(output) 30 30
354                               Store 79 78
355               81:     68(ptr) AccessChain 77(output) 30 73
356                               Store 81 80
357               82:22(HS_CONSTANT_OUT) Load 77(output)
358                               ReturnValue 82
359                               FunctionEnd