yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Jeff BolzImplement GL_EXT_long_vector (#4132)b937eae5

main
12.8 KiB266 linesraw
1spv.longVectorSpecConst.comp
2// Module Version 10300
3// Generated by (magic number): 8000b
4// Id's are bound by 164
5
6                              Capability Shader
7                              Capability Float16
8                              Capability StorageUniformBufferBlock16
9                              Capability StorageBuffer8BitAccess
10                              Capability LongVectorEXT
11                              Capability ReplicatedCompositesEXT
12                              Extension  "SPV_EXT_long_vector"
13                              Extension  "SPV_EXT_replicated_composites"
14                              Extension  "SPV_KHR_8bit_storage"
15               1:             ExtInstImport  "GLSL.std.450"
16                              MemoryModel Logical GLSL450
17                              EntryPoint GLCompute 4  "main"
18                              ExecutionMode 4 LocalSize 64 1 1
19                              Source GLSL 450
20                              SourceExtension  "GL_EXT_buffer_reference"
21                              SourceExtension  "GL_EXT_long_vector"
22                              SourceExtension  "GL_EXT_nonuniform_qualifier"
23                              SourceExtension  "GL_EXT_shader_explicit_arithmetic_types"
24                              SourceExtension  "GL_KHR_memory_scope_semantics"
25                              Name 4  "main"
26                              Name 8  "c0"
27                              Name 13  "foo(f161<s216172782>;"
28                              Name 12  "x"
29                              Name 18  "v"
30                              Name 22  "x"
31                              Name 25  "y"
32                              Name 28  "v2"
33                              Name 34  "v3"
34                              Name 35  "x3"
35                              Name 40  "y3"
36                              Name 45  "v4"
37                              Name 50  "v5"
38                              Name 53  "v6"
39                              Name 78  "f"
40                              Name 88  "len"
41                              Name 102  "f162"
42                              Name 108  "f161"
43                              Name 110  "f16"
44                              Name 113  "v11"
45                              Name 115  "v12"
46                              Name 126  "v13"
47                              Name 156  "MatrixBuf"
48                              MemberName 156(MatrixBuf) 0  "matrixData"
49                              Name 158  "matrixBuf"
50                              Name 161  "MatrixBuf2"
51                              MemberName 161(MatrixBuf2) 0  "matrixData"
52                              Name 163  "matrixBuf2"
53                              Decorate 8(c0) SpecId 0
54                              Decorate 154 BuiltIn WorkgroupSize
55                              Decorate 155 ArrayStride 2
56                              Decorate 156(MatrixBuf) Block
57                              MemberDecorate 156(MatrixBuf) 0 Offset 0
58                              Decorate 158(matrixBuf) Binding 0
59                              Decorate 158(matrixBuf) DescriptorSet 0
60                              Decorate 160 ArrayStride 1
61                              Decorate 161(MatrixBuf2) Block
62                              MemberDecorate 161(MatrixBuf2) 0 Offset 0
63                              Decorate 163(matrixBuf2) Binding 0
64                              Decorate 163(matrixBuf2) DescriptorSet 0
65               2:             TypeVoid
66               3:             TypeFunction 2
67               6:             TypeFloat 16
68               7:             TypeInt 32 0
69           8(c0):      7(int) SpecConstant 0
70               9:             TypeCooperativeVectorNV 6(float16_t) 8(c0)
71              10:             TypePointer Function 9
72              11:             TypeFunction 9 10(ptr)
73              15:             TypeFloat 32
74              16:             TypeCooperativeVectorNV 15(float) 8(c0)
75              17:             TypePointer Function 16
76              19:          16 ConstantComposite
77              20:             TypeVector 15(float) 3
78              21:             TypePointer Function 20(fvec3)
79              23:   15(float) Constant 1065353216
80              24:   20(fvec3) ConstantComposite 23 23 23
81              26:   15(float) Constant 1073741824
82              27:   20(fvec3) ConstantComposite 26 26 26
83              29:      7(int) Constant 0
84              30:             TypePointer Function 15(float)
85              36:   15(float) Constant 1082130432
86              37:   15(float) Constant 1084227584
87              38:   15(float) Constant 1086324736
88              39:   20(fvec3) ConstantComposite 36 37 38
89              41:   15(float) Constant 1088421888
90              42:   15(float) Constant 1090519040
91              43:   15(float) Constant 1091567616
92              44:   20(fvec3) ConstantComposite 41 42 43
93              46:      7(int) Constant 2
94              86:             TypeInt 32 1
95              87:             TypePointer Function 86(int)
96              90:     86(int) Constant 0
97              93:     86(int) Constant 4
98             103:             TypeVector 15(float) 20
99             104:     86(int) Constant 20
100             109:             TypePointer Function 6(float16_t)
101             151:             TypeVector 7(int) 3
102             152:      7(int) Constant 64
103             153:      7(int) Constant 1
104             154:  151(ivec3) ConstantComposite 152 153 153
105             155:             TypeRuntimeArray 6(float16_t)
106  156(MatrixBuf):             TypeStruct 155
107             157:             TypePointer StorageBuffer 156(MatrixBuf)
108  158(matrixBuf):    157(ptr) Variable StorageBuffer
109             159:             TypeInt 8 1
110             160:             TypeRuntimeArray 159(int8_t)
111 161(MatrixBuf2):             TypeStruct 160
112             162:             TypePointer StorageBuffer 161(MatrixBuf2)
113 163(matrixBuf2):    162(ptr) Variable StorageBuffer
114         4(main):           2 Function None 3
115               5:             Label
116           18(v):     17(ptr) Variable Function
117           22(x):     21(ptr) Variable Function
118           25(y):     21(ptr) Variable Function
119          28(v2):     17(ptr) Variable Function
120          34(v3):     17(ptr) Variable Function
121          35(x3):     21(ptr) Variable Function
122          40(y3):     21(ptr) Variable Function
123          45(v4):     17(ptr) Variable Function
124          50(v5):     10(ptr) Variable Function
125          53(v6):     17(ptr) Variable Function
126           78(f):     30(ptr) Variable Function
127         88(len):     87(ptr) Variable Function
128       102(f162):     10(ptr) Variable Function
129       108(f161):     10(ptr) Variable Function
130        110(f16):    109(ptr) Variable Function
131        113(v11):     10(ptr) Variable Function
132        115(v12):     10(ptr) Variable Function
133        126(v13):     10(ptr) Variable Function
134                              Store 18(v) 19
135                              Store 22(x) 24
136                              Store 25(y) 27
137              31:     30(ptr) AccessChain 22(x) 29
138              32:   15(float) Load 31
139              33:          16 CompositeConstructReplicateEXT 32
140                              Store 28(v2) 33
141                              Store 34(v3) 19
142                              Store 35(x3) 39
143                              Store 40(y3) 44
144              47:     30(ptr) AccessChain 35(x3) 46
145              48:   15(float) Load 47
146              49:          16 CompositeConstructReplicateEXT 48
147                              Store 45(v4) 49
148              51:          16 Load 45(v4)
149              52:           9 FConvert 51
150                              Store 50(v5) 52
151              54:          16 Load 18(v)
152              55:          16 Load 28(v2)
153              56:          16 FAdd 54 55
154                              Store 53(v6) 56
155              57:          16 Load 18(v)
156              58:          16 Load 28(v2)
157              59:          16 FSub 57 58
158                              Store 53(v6) 59
159              60:          16 Load 18(v)
160              61:          16 Load 28(v2)
161              62:          16 FMul 60 61
162                              Store 53(v6) 62
163              63:          16 Load 18(v)
164              64:          16 Load 28(v2)
165              65:          16 FDiv 63 64
166                              Store 53(v6) 65
167              66:          16 Load 18(v)
168              67:          16 Load 53(v6)
169              68:          16 FAdd 67 66
170                              Store 53(v6) 68
171              69:          16 Load 18(v)
172              70:          16 Load 53(v6)
173              71:          16 FSub 70 69
174                              Store 53(v6) 71
175              72:          16 Load 18(v)
176              73:          16 Load 53(v6)
177              74:          16 FMul 73 72
178                              Store 53(v6) 74
179              75:          16 Load 18(v)
180              76:          16 Load 53(v6)
181              77:          16 FDiv 76 75
182                              Store 53(v6) 77
183              79:   15(float) Load 78(f)
184              80:          16 Load 53(v6)
185              81:          16 CompositeConstruct
186              82:          16 FMul 80 81
187                              Store 53(v6) 82
188              83:          16 Load 53(v6)
189              84:          16 CompositeConstruct
190              85:          16 FMul 83 84
191                              Store 53(v6) 85
192              89:     86(int) Bitcast 8(c0)
193                              Store 88(len) 89
194              91:   15(float) Load 78(f)
195              92:     30(ptr) AccessChain 53(v6) 90
196                              Store 92 91
197              94:     30(ptr) AccessChain 53(v6) 93
198                              Store 94 37
199              95:          16 Load 18(v)
200              96:          16 Load 18(v)
201              97:          16 FAdd 96 95
202                              Store 18(v) 97
203              98:   15(float) CompositeExtract 97 4
204              99:   15(float) Load 78(f)
205             100:   15(float) FAdd 99 98
206                              Store 78(f) 100
207             101:          16 Load 18(v)
208                              Store 53(v6) 101
209             105:     86(int) Bitcast 104
210             106:6(float16_t) ConvertSToF 105
211             107:           9 CompositeConstructReplicateEXT 106
212                              Store 102(f162) 107
213             111:6(float16_t) Load 110(f16)
214             112:           9 CompositeConstructReplicateEXT 111
215                              Store 108(f161) 112
216             114:           9 Load 113(v11)
217             116:           9 Load 115(v12)
218             117:           9 ExtInst 1(GLSL.std.450) 40(FMax) 114 116
219                              Store 113(v11) 117
220             118:           9 Load 113(v11)
221             119:           9 Load 115(v12)
222             120:           9 ExtInst 1(GLSL.std.450) 37(FMin) 118 119
223                              Store 113(v11) 120
224             121:           9 Load 113(v11)
225             122:           9 Load 115(v12)
226             123:           9 ExtInst 1(GLSL.std.450) 48(Step) 121 122
227                              Store 113(v11) 123
228             124:           9 Load 113(v11)
229             125:           9 Load 115(v12)
230             127:           9 Load 126(v13)
231             128:           9 ExtInst 1(GLSL.std.450) 43(FClamp) 124 125 127
232                              Store 113(v11) 128
233             129:           9 Load 113(v11)
234             130:           9 ExtInst 1(GLSL.std.450) 27(Exp) 129
235                              Store 113(v11) 130
236             131:           9 Load 113(v11)
237             132:           9 ExtInst 1(GLSL.std.450) 28(Log) 131
238                              Store 113(v11) 132
239             133:           9 Load 113(v11)
240             134:           9 ExtInst 1(GLSL.std.450) 21(Tanh) 133
241                              Store 113(v11) 134
242             135:           9 Load 113(v11)
243             136:           9 ExtInst 1(GLSL.std.450) 18(Atan) 135
244                              Store 113(v11) 136
245             137:           9 Load 113(v11)
246             138:           9 Load 115(v12)
247             139:           9 Load 126(v13)
248             140:           9 ExtInst 1(GLSL.std.450) 50(Fma) 137 138 139
249                              Store 113(v11) 140
250             141:          16 Load 18(v)
251             142:          16 Load 18(v)
252             143:          16 FAdd 142 141
253                              Store 18(v) 143
254             144:     86(int) Load 88(len)
255             145:   15(float) VectorExtractDynamic 143 144
256             146:   15(float) Load 78(f)
257             147:   15(float) FAdd 146 145
258                              Store 78(f) 147
259                              Return
260                              FunctionEnd
26113(foo(f161<s216172782>;):           9 Function None 11
262           12(x):     10(ptr) FunctionParameter
263              14:             Label
264             148:           9 Load 12(x)
265                              ReturnValue 148
266                              FunctionEnd