SPIR-V: Move from Version .99 Rev 31 to Version 1.0, Rev 2.

This commit is contained in:
John Kessenich 2015-11-15 21:33:39 -07:00
parent 1c77f3a8d2
commit 55e7d11ce8
117 changed files with 6740 additions and 5997 deletions

480
Test/baseResults/spv.newTexture.frag.out Normal file → Executable file
View file

@ -5,16 +5,16 @@ Warning, version 430 is not yet complete; most version-specific features are pre
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 265
Source GLSL 430
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
EntryPoint Fragment 4 "main" 55 17 38 26 72 79 69 264 234
ExecutionMode 4 OriginLowerLeft
Source GLSL 430
Name 4 "main"
Name 9 "v"
Name 13 "s2D"
@ -25,40 +25,30 @@ Linked fragment stage:
Name 38 "c3D"
Name 47 "s2DShadow"
Name 55 "c1D"
Name 67 "ic3D"
Name 70 "ic1D"
Name 77 "ic2D"
Name 86 "sr"
Name 112 "sCube"
Name 123 "s2DArrayShadow"
Name 151 "iv"
Name 155 "is2D"
Name 190 "is3D"
Name 202 "isCube"
Name 214 "is2DArray"
Name 224 "iv2"
Name 228 "sCubeShadow"
Name 233 "FragData"
Name 245 "is2Dms"
Name 69 "ic3D"
Name 72 "ic1D"
Name 79 "ic2D"
Name 88 "sr"
Name 113 "sCube"
Name 124 "s2DArrayShadow"
Name 152 "iv"
Name 156 "is2D"
Name 191 "is3D"
Name 203 "isCube"
Name 215 "is2DArray"
Name 225 "iv2"
Name 229 "sCubeShadow"
Name 234 "FragData"
Name 246 "is2Dms"
Name 250 "us2D"
Name 254 "us3D"
Name 258 "usCube"
Name 262 "us2DArray"
Name 264 "ic4D"
Decorate 17(c2D) Smooth
Decorate 26(c4D) Smooth
Decorate 38(c3D) Smooth
Decorate 55(c1D) Smooth
Decorate 67(ic3D) Flat
Decorate 70(ic1D) Flat
Decorate 77(ic2D) Flat
Decorate 245(is2Dms) NoStaticUse
Decorate 250(us2D) NoStaticUse
Decorate 254(us3D) NoStaticUse
Decorate 258(usCube) NoStaticUse
Decorate 262(us2DArray) NoStaticUse
Decorate 69(ic3D) Flat
Decorate 72(ic1D) Flat
Decorate 79(ic2D) Flat
Decorate 264(ic4D) Flat
Decorate 264(ic4D) NoStaticUse
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@ -95,83 +85,86 @@ Linked fragment stage:
53: 51(ivec2) ConstantComposite 52 52
54: TypePointer Input 6(float)
55(c1D): 54(ptr) Variable Input
65: TypeVector 50(int) 3
66: TypePointer Input 65(ivec3)
67(ic3D): 66(ptr) Variable Input
69: TypePointer Input 50(int)
70(ic1D): 69(ptr) Variable Input
76: TypePointer Input 51(ivec2)
77(ic2D): 76(ptr) Variable Input
79: 50(int) Constant 4
83: TypeImage 6(float) Rect sampled format:Unknown
84: TypeSampledImage 83
85: TypePointer UniformConstant 84
86(sr): 85(ptr) Variable UniformConstant
89: 51(ivec2) ConstantComposite 79 79
109: TypeImage 6(float) Cube sampled format:Unknown
110: TypeSampledImage 109
111: TypePointer UniformConstant 110
112(sCube): 111(ptr) Variable UniformConstant
120: TypeImage 6(float) 2D depth array sampled format:Unknown
121: TypeSampledImage 120
122: TypePointer UniformConstant 121
123(s2DArrayShadow): 122(ptr) Variable UniformConstant
149: TypeVector 50(int) 4
150: TypePointer Function 149(ivec4)
152: TypeImage 50(int) 2D sampled format:Unknown
153: TypeSampledImage 152
154: TypePointer UniformConstant 153
155(is2D): 154(ptr) Variable UniformConstant
187: TypeImage 50(int) 3D sampled format:Unknown
188: TypeSampledImage 187
189: TypePointer UniformConstant 188
190(is3D): 189(ptr) Variable UniformConstant
193: 6(float) Constant 1082549862
199: TypeImage 50(int) Cube sampled format:Unknown
200: TypeSampledImage 199
201: TypePointer UniformConstant 200
202(isCube): 201(ptr) Variable UniformConstant
211: TypeImage 50(int) 2D array sampled format:Unknown
212: TypeSampledImage 211
213: TypePointer UniformConstant 212
214(is2DArray): 213(ptr) Variable UniformConstant
223: TypePointer Function 51(ivec2)
225: TypeImage 6(float) Cube depth sampled format:Unknown
226: TypeSampledImage 225
227: TypePointer UniformConstant 226
228(sCubeShadow): 227(ptr) Variable UniformConstant
230: 50(int) Constant 2
232: TypePointer Output 7(fvec4)
233(FragData): 232(ptr) Variable Output
237: 6(float) Constant 0
242: TypeImage 50(int) 2D multi-sampled sampled format:Unknown
243: TypeSampledImage 242
244: TypePointer UniformConstant 243
245(is2Dms): 244(ptr) Variable UniformConstant
246: TypeInt 32 0
247: TypeImage 246(int) 2D sampled format:Unknown
59: TypeInt 32 0
60: 59(int) Constant 1
61: TypePointer Function 6(float)
67: TypeVector 50(int) 3
68: TypePointer Input 67(ivec3)
69(ic3D): 68(ptr) Variable Input
71: TypePointer Input 50(int)
72(ic1D): 71(ptr) Variable Input
78: TypePointer Input 51(ivec2)
79(ic2D): 78(ptr) Variable Input
81: 50(int) Constant 4
85: TypeImage 6(float) Rect sampled format:Unknown
86: TypeSampledImage 85
87: TypePointer UniformConstant 86
88(sr): 87(ptr) Variable UniformConstant
91: 51(ivec2) ConstantComposite 81 81
110: TypeImage 6(float) Cube sampled format:Unknown
111: TypeSampledImage 110
112: TypePointer UniformConstant 111
113(sCube): 112(ptr) Variable UniformConstant
121: TypeImage 6(float) 2D depth array sampled format:Unknown
122: TypeSampledImage 121
123: TypePointer UniformConstant 122
124(s2DArrayShadow): 123(ptr) Variable UniformConstant
131: 59(int) Constant 0
150: TypeVector 50(int) 4
151: TypePointer Function 150(ivec4)
153: TypeImage 50(int) 2D sampled format:Unknown
154: TypeSampledImage 153
155: TypePointer UniformConstant 154
156(is2D): 155(ptr) Variable UniformConstant
188: TypeImage 50(int) 3D sampled format:Unknown
189: TypeSampledImage 188
190: TypePointer UniformConstant 189
191(is3D): 190(ptr) Variable UniformConstant
194: 6(float) Constant 1082549862
200: TypeImage 50(int) Cube sampled format:Unknown
201: TypeSampledImage 200
202: TypePointer UniformConstant 201
203(isCube): 202(ptr) Variable UniformConstant
212: TypeImage 50(int) 2D array sampled format:Unknown
213: TypeSampledImage 212
214: TypePointer UniformConstant 213
215(is2DArray): 214(ptr) Variable UniformConstant
224: TypePointer Function 51(ivec2)
226: TypeImage 6(float) Cube depth sampled format:Unknown
227: TypeSampledImage 226
228: TypePointer UniformConstant 227
229(sCubeShadow): 228(ptr) Variable UniformConstant
231: 50(int) Constant 2
233: TypePointer Output 7(fvec4)
234(FragData): 233(ptr) Variable Output
238: 6(float) Constant 0
243: TypeImage 50(int) 2D multi-sampled sampled format:Unknown
244: TypeSampledImage 243
245: TypePointer UniformConstant 244
246(is2Dms): 245(ptr) Variable UniformConstant
247: TypeImage 59(int) 2D sampled format:Unknown
248: TypeSampledImage 247
249: TypePointer UniformConstant 248
250(us2D): 249(ptr) Variable UniformConstant
251: TypeImage 246(int) 3D sampled format:Unknown
251: TypeImage 59(int) 3D sampled format:Unknown
252: TypeSampledImage 251
253: TypePointer UniformConstant 252
254(us3D): 253(ptr) Variable UniformConstant
255: TypeImage 246(int) Cube sampled format:Unknown
255: TypeImage 59(int) Cube sampled format:Unknown
256: TypeSampledImage 255
257: TypePointer UniformConstant 256
258(usCube): 257(ptr) Variable UniformConstant
259: TypeImage 246(int) 2D array sampled format:Unknown
259: TypeImage 59(int) 2D array sampled format:Unknown
260: TypeSampledImage 259
261: TypePointer UniformConstant 260
262(us2DArray): 261(ptr) Variable UniformConstant
263: TypePointer Input 149(ivec4)
263: TypePointer Input 150(ivec4)
264(ic4D): 263(ptr) Variable Input
4(main): 2 Function None 3
5: Label
9(v): 8(ptr) Variable Function
151(iv): 150(ptr) Variable Function
224(iv2): 223(ptr) Variable Function
152(iv): 151(ptr) Variable Function
225(iv2): 224(ptr) Variable Function
14: 11 Load 13(s2D)
18: 15(fvec2) Load 17(c2D)
19: 7(fvec4) ImageSampleImplicitLod 14 18
@ -193,163 +186,160 @@ Linked fragment stage:
56: 6(float) Load 55(c1D)
57: 6(float) CompositeExtract 49 2
58: 6(float) ImageSampleDrefImplicitLod 48 49 57 Bias ConstOffset 56 53
59: 7(fvec4) Load 9(v)
60: 6(float) CompositeExtract 59 1
61: 6(float) FAdd 60 58
62: 7(fvec4) Load 9(v)
63: 7(fvec4) CompositeInsert 61 62 1
Store 9(v) 63
64: 21 Load 23(s3D)
68: 65(ivec3) Load 67(ic3D)
71: 50(int) Load 70(ic1D)
72: 7(fvec4) ImageFetch 64 68 Lod 71
73: 7(fvec4) Load 9(v)
74: 7(fvec4) FAdd 73 72
Store 9(v) 74
75: 11 Load 13(s2D)
78: 51(ivec2) Load 77(ic2D)
80: 7(fvec4) ImageFetch 75 78 Lod ConstOffset 79 53
81: 7(fvec4) Load 9(v)
82: 7(fvec4) FAdd 81 80
Store 9(v) 82
87: 84 Load 86(sr)
88: 51(ivec2) Load 77(ic2D)
90: 7(fvec4) ImageFetch 87 88 ConstOffset 89
91: 7(fvec4) Load 9(v)
92: 7(fvec4) FAdd 91 90
Store 9(v) 92
93: 45 Load 47(s2DShadow)
94: 36(fvec3) Load 38(c3D)
95: 6(float) Load 55(c1D)
96: 6(float) CompositeExtract 94 2
97: 6(float) ImageSampleDrefExplicitLod 93 94 96 Lod ConstOffset 95 53
98: 7(fvec4) Load 9(v)
99: 6(float) CompositeExtract 98 1
100: 6(float) FAdd 99 97
101: 7(fvec4) Load 9(v)
102: 7(fvec4) CompositeInsert 100 101 1
Store 9(v) 102
103: 11 Load 13(s2D)
104: 36(fvec3) Load 38(c3D)
105: 6(float) Load 55(c1D)
106: 7(fvec4) ImageSampleProjExplicitLod 103 104 Lod ConstOffset 105 53
107: 7(fvec4) Load 9(v)
108: 7(fvec4) FAdd 107 106
Store 9(v) 108
113: 110 Load 112(sCube)
114: 36(fvec3) Load 38(c3D)
62: 61(ptr) AccessChain 9(v) 60
63: 6(float) Load 62
64: 6(float) FAdd 63 58
65: 61(ptr) AccessChain 9(v) 60
Store 65 64
66: 21 Load 23(s3D)
70: 67(ivec3) Load 69(ic3D)
73: 50(int) Load 72(ic1D)
74: 7(fvec4) ImageFetch 66 70 Lod 73
75: 7(fvec4) Load 9(v)
76: 7(fvec4) FAdd 75 74
Store 9(v) 76
77: 11 Load 13(s2D)
80: 51(ivec2) Load 79(ic2D)
82: 7(fvec4) ImageFetch 77 80 Lod ConstOffset 81 53
83: 7(fvec4) Load 9(v)
84: 7(fvec4) FAdd 83 82
Store 9(v) 84
89: 86 Load 88(sr)
90: 51(ivec2) Load 79(ic2D)
92: 7(fvec4) ImageFetch 89 90 ConstOffset 91
93: 7(fvec4) Load 9(v)
94: 7(fvec4) FAdd 93 92
Store 9(v) 94
95: 45 Load 47(s2DShadow)
96: 36(fvec3) Load 38(c3D)
97: 6(float) Load 55(c1D)
98: 6(float) CompositeExtract 96 2
99: 6(float) ImageSampleDrefExplicitLod 95 96 98 Lod ConstOffset 97 53
100: 61(ptr) AccessChain 9(v) 60
101: 6(float) Load 100
102: 6(float) FAdd 101 99
103: 61(ptr) AccessChain 9(v) 60
Store 103 102
104: 11 Load 13(s2D)
105: 36(fvec3) Load 38(c3D)
106: 6(float) Load 55(c1D)
107: 7(fvec4) ImageSampleProjExplicitLod 104 105 Lod ConstOffset 106 53
108: 7(fvec4) Load 9(v)
109: 7(fvec4) FAdd 108 107
Store 9(v) 109
114: 111 Load 113(sCube)
115: 36(fvec3) Load 38(c3D)
116: 36(fvec3) Load 38(c3D)
117: 7(fvec4) ImageSampleExplicitLod 113 114 Grad 115 116
118: 7(fvec4) Load 9(v)
119: 7(fvec4) FAdd 118 117
Store 9(v) 119
124: 121 Load 123(s2DArrayShadow)
125: 7(fvec4) Load 26(c4D)
126: 15(fvec2) Load 17(c2D)
117: 36(fvec3) Load 38(c3D)
118: 7(fvec4) ImageSampleExplicitLod 114 115 Grad 116 117
119: 7(fvec4) Load 9(v)
120: 7(fvec4) FAdd 119 118
Store 9(v) 120
125: 122 Load 124(s2DArrayShadow)
126: 7(fvec4) Load 26(c4D)
127: 15(fvec2) Load 17(c2D)
128: 6(float) CompositeExtract 125 3
129: 6(float) ImageSampleDrefExplicitLod 124 125 128 Grad ConstOffset 126 127 53
130: 7(fvec4) Load 9(v)
131: 6(float) CompositeExtract 130 0
132: 6(float) FAdd 131 129
133: 7(fvec4) Load 9(v)
134: 7(fvec4) CompositeInsert 132 133 0
Store 9(v) 134
135: 21 Load 23(s3D)
136: 7(fvec4) Load 26(c4D)
137: 36(fvec3) Load 38(c3D)
128: 15(fvec2) Load 17(c2D)
129: 6(float) CompositeExtract 126 3
130: 6(float) ImageSampleDrefExplicitLod 125 126 129 Grad ConstOffset 127 128 53
132: 61(ptr) AccessChain 9(v) 131
133: 6(float) Load 132
134: 6(float) FAdd 133 130
135: 61(ptr) AccessChain 9(v) 131
Store 135 134
136: 21 Load 23(s3D)
137: 7(fvec4) Load 26(c4D)
138: 36(fvec3) Load 38(c3D)
139: 7(fvec4) ImageSampleProjExplicitLod 135 136 Grad 137 138
140: 7(fvec4) Load 9(v)
141: 7(fvec4) FAdd 140 139
Store 9(v) 141
142: 11 Load 13(s2D)
143: 36(fvec3) Load 38(c3D)
144: 15(fvec2) Load 17(c2D)
139: 36(fvec3) Load 38(c3D)
140: 7(fvec4) ImageSampleProjExplicitLod 136 137 Grad 138 139
141: 7(fvec4) Load 9(v)
142: 7(fvec4) FAdd 141 140
Store 9(v) 142
143: 11 Load 13(s2D)
144: 36(fvec3) Load 38(c3D)
145: 15(fvec2) Load 17(c2D)
146: 7(fvec4) ImageSampleProjExplicitLod 142 143 Grad ConstOffset 144 145 53
147: 7(fvec4) Load 9(v)
148: 7(fvec4) FAdd 147 146
Store 9(v) 148
156: 153 Load 155(is2D)
157: 15(fvec2) Load 17(c2D)
158: 149(ivec4) ImageSampleImplicitLod 156 157
Store 151(iv) 158
159: 149(ivec4) Load 151(iv)
160: 7(fvec4) ConvertSToF 159
161: 7(fvec4) Load 9(v)
162: 7(fvec4) FAdd 161 160
Store 9(v) 162
163: 153 Load 155(is2D)
164: 7(fvec4) Load 26(c4D)
165: 149(ivec4) ImageSampleProjImplicitLod 163 164 ConstOffset 53
Store 151(iv) 165
166: 149(ivec4) Load 151(iv)
167: 7(fvec4) ConvertSToF 166
168: 7(fvec4) Load 9(v)
169: 7(fvec4) FAdd 168 167
Store 9(v) 169
170: 153 Load 155(is2D)
171: 36(fvec3) Load 38(c3D)
172: 6(float) Load 55(c1D)
173: 149(ivec4) ImageSampleProjExplicitLod 170 171 Lod 172
Store 151(iv) 173
174: 149(ivec4) Load 151(iv)
175: 7(fvec4) ConvertSToF 174
176: 7(fvec4) Load 9(v)
177: 7(fvec4) FAdd 176 175
Store 9(v) 177
178: 153 Load 155(is2D)
179: 36(fvec3) Load 38(c3D)
180: 15(fvec2) Load 17(c2D)
146: 15(fvec2) Load 17(c2D)
147: 7(fvec4) ImageSampleProjExplicitLod 143 144 Grad ConstOffset 145 146 53
148: 7(fvec4) Load 9(v)
149: 7(fvec4) FAdd 148 147
Store 9(v) 149
157: 154 Load 156(is2D)
158: 15(fvec2) Load 17(c2D)
159: 150(ivec4) ImageSampleImplicitLod 157 158
Store 152(iv) 159
160: 150(ivec4) Load 152(iv)
161: 7(fvec4) ConvertSToF 160
162: 7(fvec4) Load 9(v)
163: 7(fvec4) FAdd 162 161
Store 9(v) 163
164: 154 Load 156(is2D)
165: 7(fvec4) Load 26(c4D)
166: 150(ivec4) ImageSampleProjImplicitLod 164 165 ConstOffset 53
Store 152(iv) 166
167: 150(ivec4) Load 152(iv)
168: 7(fvec4) ConvertSToF 167
169: 7(fvec4) Load 9(v)
170: 7(fvec4) FAdd 169 168
Store 9(v) 170
171: 154 Load 156(is2D)
172: 36(fvec3) Load 38(c3D)
173: 6(float) Load 55(c1D)
174: 150(ivec4) ImageSampleProjExplicitLod 171 172 Lod 173
Store 152(iv) 174
175: 150(ivec4) Load 152(iv)
176: 7(fvec4) ConvertSToF 175
177: 7(fvec4) Load 9(v)
178: 7(fvec4) FAdd 177 176
Store 9(v) 178
179: 154 Load 156(is2D)
180: 36(fvec3) Load 38(c3D)
181: 15(fvec2) Load 17(c2D)
182: 149(ivec4) ImageSampleProjExplicitLod 178 179 Grad 180 181
Store 151(iv) 182
183: 149(ivec4) Load 151(iv)
184: 7(fvec4) ConvertSToF 183
185: 7(fvec4) Load 9(v)
186: 7(fvec4) FAdd 185 184
Store 9(v) 186
191: 188 Load 190(is3D)
192: 36(fvec3) Load 38(c3D)
194: 149(ivec4) ImageSampleImplicitLod 191 192 Bias 193
Store 151(iv) 194
195: 149(ivec4) Load 151(iv)
196: 7(fvec4) ConvertSToF 195
197: 7(fvec4) Load 9(v)
198: 7(fvec4) FAdd 197 196
Store 9(v) 198
203: 200 Load 202(isCube)
204: 36(fvec3) Load 38(c3D)
205: 6(float) Load 55(c1D)
206: 149(ivec4) ImageSampleExplicitLod 203 204 Lod 205
Store 151(iv) 206
207: 149(ivec4) Load 151(iv)
208: 7(fvec4) ConvertSToF 207
209: 7(fvec4) Load 9(v)
210: 7(fvec4) FAdd 209 208
Store 9(v) 210
215: 212 Load 214(is2DArray)
216: 65(ivec3) Load 67(ic3D)
217: 50(int) Load 70(ic1D)
218: 149(ivec4) ImageFetch 215 216 Lod 217
Store 151(iv) 218
219: 149(ivec4) Load 151(iv)
220: 7(fvec4) ConvertSToF 219
221: 7(fvec4) Load 9(v)
222: 7(fvec4) FAdd 221 220
Store 9(v) 222
229: 226 Load 228(sCubeShadow)
231: 51(ivec2) ImageQuerySizeLod 229 230
Store 224(iv2) 231
234: 7(fvec4) Load 9(v)
235: 51(ivec2) Load 224(iv2)
236: 15(fvec2) ConvertSToF 235
238: 6(float) CompositeExtract 236 0
239: 6(float) CompositeExtract 236 1
240: 7(fvec4) CompositeConstruct 238 239 237 237
241: 7(fvec4) FAdd 234 240
Store 233(FragData) 241
182: 15(fvec2) Load 17(c2D)
183: 150(ivec4) ImageSampleProjExplicitLod 179 180 Grad 181 182
Store 152(iv) 183
184: 150(ivec4) Load 152(iv)
185: 7(fvec4) ConvertSToF 184
186: 7(fvec4) Load 9(v)
187: 7(fvec4) FAdd 186 185
Store 9(v) 187
192: 189 Load 191(is3D)
193: 36(fvec3) Load 38(c3D)
195: 150(ivec4) ImageSampleImplicitLod 192 193 Bias 194
Store 152(iv) 195
196: 150(ivec4) Load 152(iv)
197: 7(fvec4) ConvertSToF 196
198: 7(fvec4) Load 9(v)
199: 7(fvec4) FAdd 198 197
Store 9(v) 199
204: 201 Load 203(isCube)
205: 36(fvec3) Load 38(c3D)
206: 6(float) Load 55(c1D)
207: 150(ivec4) ImageSampleExplicitLod 204 205 Lod 206
Store 152(iv) 207
208: 150(ivec4) Load 152(iv)
209: 7(fvec4) ConvertSToF 208
210: 7(fvec4) Load 9(v)
211: 7(fvec4) FAdd 210 209
Store 9(v) 211
216: 213 Load 215(is2DArray)
217: 67(ivec3) Load 69(ic3D)
218: 50(int) Load 72(ic1D)
219: 150(ivec4) ImageFetch 216 217 Lod 218
Store 152(iv) 219
220: 150(ivec4) Load 152(iv)
221: 7(fvec4) ConvertSToF 220
222: 7(fvec4) Load 9(v)
223: 7(fvec4) FAdd 222 221
Store 9(v) 223
230: 227 Load 229(sCubeShadow)
232: 51(ivec2) ImageQuerySizeLod 230 231
Store 225(iv2) 232
235: 7(fvec4) Load 9(v)
236: 51(ivec2) Load 225(iv2)
237: 15(fvec2) ConvertSToF 236
239: 6(float) CompositeExtract 237 0
240: 6(float) CompositeExtract 237 1
241: 7(fvec4) CompositeConstruct 239 240 238 238
242: 7(fvec4) FAdd 235 241
Store 234(FragData) 242
Return
FunctionEnd