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

View File

@@ -3,16 +3,16 @@ spv.conversion.frag
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 452
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 455
Source GLSL 130
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
EntryPoint Fragment 4 "main" 39 446 448 157 53 450 452 454
ExecutionMode 4 OriginLowerLeft
Source GLSL 130
Name 4 "main"
Name 8 "b"
Name 11 "u_i"
@@ -34,50 +34,29 @@ Linked fragment stage:
Name 114 "f3"
Name 118 "f4"
Name 157 "i_i4"
Name 321 "gl_FragColor"
Name 414 "cv2"
Name 415 "cv5"
Name 425 "u_b"
Name 427 "u_b2"
Name 429 "u_b3"
Name 431 "u_b4"
Name 433 "u_i2"
Name 435 "u_i3"
Name 437 "u_i4"
Name 438 "i_b"
Name 439 "i_b2"
Name 440 "i_b3"
Name 441 "i_b4"
Name 443 "i_i2"
Name 445 "i_i3"
Name 447 "i_f2"
Name 449 "i_f3"
Name 451 "i_f4"
Name 322 "gl_FragColor"
Name 417 "cv2"
Name 418 "cv5"
Name 428 "u_b"
Name 430 "u_b2"
Name 432 "u_b3"
Name 434 "u_b4"
Name 436 "u_i2"
Name 438 "u_i3"
Name 440 "u_i4"
Name 441 "i_b"
Name 442 "i_b2"
Name 443 "i_b3"
Name 444 "i_b4"
Name 446 "i_i2"
Name 448 "i_i3"
Name 450 "i_f2"
Name 452 "i_f3"
Name 454 "i_f4"
Decorate 39(i_i) Flat
Decorate 53(i_f) Smooth
Decorate 157(i_i4) Flat
Decorate 321(gl_FragColor) BuiltIn FragColor
Decorate 425(u_b) NoStaticUse
Decorate 427(u_b2) NoStaticUse
Decorate 429(u_b3) NoStaticUse
Decorate 431(u_b4) NoStaticUse
Decorate 433(u_i2) NoStaticUse
Decorate 435(u_i3) NoStaticUse
Decorate 437(u_i4) NoStaticUse
Decorate 438(i_b) NoStaticUse
Decorate 439(i_b2) NoStaticUse
Decorate 440(i_b3) NoStaticUse
Decorate 441(i_b4) NoStaticUse
Decorate 443(i_i2) Flat
Decorate 443(i_i2) NoStaticUse
Decorate 445(i_i3) Flat
Decorate 445(i_i3) NoStaticUse
Decorate 447(i_f2) Smooth
Decorate 447(i_f2) NoStaticUse
Decorate 449(i_f3) Smooth
Decorate 449(i_f3) NoStaticUse
Decorate 451(i_f4) Smooth
Decorate 451(i_f4) NoStaticUse
Decorate 446(i_i2) Flat
Decorate 448(i_i3) Flat
2: TypeVoid
3: TypeFunction 2
6: TypeBool
@@ -140,36 +119,39 @@ Linked fragment stage:
157(i_i4): 156(ptr) Variable Input
159: TypeVector 13(int) 4
160: 159(ivec4) ConstantComposite 14 14 14 14
320: TypePointer Output 95(fvec4)
321(gl_FragColor): 320(ptr) Variable Output
424: TypePointer UniformConstant 6(bool)
425(u_b): 424(ptr) Variable UniformConstant
426: TypePointer UniformConstant 23(bvec2)
427(u_b2): 426(ptr) Variable UniformConstant
428: TypePointer UniformConstant 31(bvec3)
429(u_b3): 428(ptr) Variable UniformConstant
430: TypePointer UniformConstant 43(bvec4)
431(u_b4): 430(ptr) Variable UniformConstant
432: TypePointer UniformConstant 66(ivec2)
433(u_i2): 432(ptr) Variable UniformConstant
434: TypePointer UniformConstant 79(ivec3)
435(u_i3): 434(ptr) Variable UniformConstant
436: TypePointer UniformConstant 92(ivec4)
437(u_i4): 436(ptr) Variable UniformConstant
438(i_b): 424(ptr) Variable UniformConstant
439(i_b2): 426(ptr) Variable UniformConstant
440(i_b3): 428(ptr) Variable UniformConstant
441(i_b4): 430(ptr) Variable UniformConstant
442: TypePointer Input 66(ivec2)
443(i_i2): 442(ptr) Variable Input
444: TypePointer Input 79(ivec3)
445(i_i3): 444(ptr) Variable Input
446: TypePointer Input 69(fvec2)
447(i_f2): 446(ptr) Variable Input
448: TypePointer Input 82(fvec3)
449(i_f3): 448(ptr) Variable Input
450: TypePointer Input 95(fvec4)
451(i_f4): 450(ptr) Variable Input
315: 13(int) Constant 1
321: TypePointer Output 95(fvec4)
322(gl_FragColor): 321(ptr) Variable Output
367: 13(int) Constant 2
380: 13(int) Constant 3
427: TypePointer UniformConstant 6(bool)
428(u_b): 427(ptr) Variable UniformConstant
429: TypePointer UniformConstant 23(bvec2)
430(u_b2): 429(ptr) Variable UniformConstant
431: TypePointer UniformConstant 31(bvec3)
432(u_b3): 431(ptr) Variable UniformConstant
433: TypePointer UniformConstant 43(bvec4)
434(u_b4): 433(ptr) Variable UniformConstant
435: TypePointer UniformConstant 66(ivec2)
436(u_i2): 435(ptr) Variable UniformConstant
437: TypePointer UniformConstant 79(ivec3)
438(u_i3): 437(ptr) Variable UniformConstant
439: TypePointer UniformConstant 92(ivec4)
440(u_i4): 439(ptr) Variable UniformConstant
441(i_b): 427(ptr) Variable UniformConstant
442(i_b2): 429(ptr) Variable UniformConstant
443(i_b3): 431(ptr) Variable UniformConstant
444(i_b4): 433(ptr) Variable UniformConstant
445: TypePointer Input 66(ivec2)
446(i_i2): 445(ptr) Variable Input
447: TypePointer Input 79(ivec3)
448(i_i3): 447(ptr) Variable Input
449: TypePointer Input 69(fvec2)
450(i_f2): 449(ptr) Variable Input
451: TypePointer Input 82(fvec3)
452(i_f3): 451(ptr) Variable Input
453: TypePointer Input 95(fvec4)
454(i_f4): 453(ptr) Variable Input
4(main): 2 Function None 3
5: Label
8(b): 7(ptr) Variable Function
@@ -186,9 +168,9 @@ Linked fragment stage:
118(f4): 117(ptr) Variable Function
297: 105(ptr) Variable Function
307: 105(ptr) Variable Function
322: 117(ptr) Variable Function
414(cv2): 93(ptr) Variable Function
415(cv5): 44(ptr) Variable Function
323: 117(ptr) Variable Function
417(cv2): 93(ptr) Variable Function
418(cv5): 44(ptr) Variable Function
12: 9(int) Load 11(u_i)
15: 6(bool) INotEqual 12 14
19: 16(float) Load 18(u_f)
@@ -455,8 +437,8 @@ Linked fragment stage:
Store 297 302
Branch 300
303: Label
304: 69(fvec2) Load 110(f2)
305: 16(float) CompositeExtract 304 0
304: 105(ptr) AccessChain 110(f2) 14
305: 16(float) Load 304
Store 297 305
Branch 300
300: Label
@@ -466,130 +448,130 @@ Linked fragment stage:
SelectionMerge 311 None
BranchConditional 309 310 314
310: Label
312: 82(fvec3) Load 114(f3)
313: 16(float) CompositeExtract 312 0
312: 105(ptr) AccessChain 114(f3) 14
313: 16(float) Load 312
Store 307 313
Branch 311
314: Label
315: 66(ivec2) Load 68(i2)
316: 9(int) CompositeExtract 315 1
317: 16(float) ConvertSToF 316
Store 307 317
316: 57(ptr) AccessChain 68(i2) 315
317: 9(int) Load 316
318: 16(float) ConvertSToF 317
Store 307 318
Branch 311
311: Label
318: 16(float) Load 307
319: 16(float) FAdd 306 318
Store 106(f) 319
319: 16(float) Load 307
320: 16(float) FAdd 306 319
Store 106(f) 320
Branch 296
296: Label
323: 6(bool) Load 8(b)
324: 23(bvec2) Load 25(b2)
325: 6(bool) CompositeExtract 324 0
326: 6(bool) LogicalOr 323 325
327: 23(bvec2) Load 25(b2)
328: 6(bool) CompositeExtract 327 1
329: 6(bool) LogicalOr 326 328
330: 31(bvec3) Load 33(b3)
331: 6(bool) CompositeExtract 330 0
332: 6(bool) LogicalOr 329 331
333: 31(bvec3) Load 33(b3)
334: 6(bool) CompositeExtract 333 1
335: 6(bool) LogicalOr 332 334
336: 31(bvec3) Load 33(b3)
337: 6(bool) CompositeExtract 336 2
338: 6(bool) LogicalOr 335 337
339: 43(bvec4) Load 45(b4)
340: 6(bool) CompositeExtract 339 0
341: 6(bool) LogicalOr 338 340
342: 43(bvec4) Load 45(b4)
343: 6(bool) CompositeExtract 342 1
344: 6(bool) LogicalOr 341 343
345: 43(bvec4) Load 45(b4)
346: 6(bool) CompositeExtract 345 2
347: 6(bool) LogicalOr 344 346
348: 43(bvec4) Load 45(b4)
349: 6(bool) CompositeExtract 348 3
350: 6(bool) LogicalOr 347 349
SelectionMerge 352 None
BranchConditional 350 351 412
351: Label
353: 9(int) Load 58(i)
354: 66(ivec2) Load 68(i2)
355: 9(int) CompositeExtract 354 0
356: 9(int) IAdd 353 355
357: 66(ivec2) Load 68(i2)
358: 9(int) CompositeExtract 357 1
359: 9(int) IAdd 356 358
360: 79(ivec3) Load 81(i3)
361: 9(int) CompositeExtract 360 0
362: 9(int) IAdd 359 361
363: 79(ivec3) Load 81(i3)
364: 9(int) CompositeExtract 363 1
365: 9(int) IAdd 362 364
366: 79(ivec3) Load 81(i3)
367: 9(int) CompositeExtract 366 2
368: 9(int) IAdd 365 367
369: 92(ivec4) Load 94(i4)
370: 9(int) CompositeExtract 369 0
371: 9(int) IAdd 368 370
372: 92(ivec4) Load 94(i4)
373: 9(int) CompositeExtract 372 1
374: 9(int) IAdd 371 373
375: 92(ivec4) Load 94(i4)
376: 9(int) CompositeExtract 375 2
377: 9(int) IAdd 374 376
378: 92(ivec4) Load 94(i4)
379: 9(int) CompositeExtract 378 3
380: 9(int) IAdd 377 379
381: 16(float) ConvertSToF 380
382: 16(float) Load 106(f)
383: 16(float) FAdd 381 382
384: 69(fvec2) Load 110(f2)
385: 16(float) CompositeExtract 384 0
386: 16(float) FAdd 383 385
387: 69(fvec2) Load 110(f2)
388: 16(float) CompositeExtract 387 1
324: 6(bool) Load 8(b)
325: 23(bvec2) Load 25(b2)
326: 6(bool) CompositeExtract 325 0
327: 6(bool) LogicalOr 324 326
328: 23(bvec2) Load 25(b2)
329: 6(bool) CompositeExtract 328 1
330: 6(bool) LogicalOr 327 329
331: 31(bvec3) Load 33(b3)
332: 6(bool) CompositeExtract 331 0
333: 6(bool) LogicalOr 330 332
334: 31(bvec3) Load 33(b3)
335: 6(bool) CompositeExtract 334 1
336: 6(bool) LogicalOr 333 335
337: 31(bvec3) Load 33(b3)
338: 6(bool) CompositeExtract 337 2
339: 6(bool) LogicalOr 336 338
340: 43(bvec4) Load 45(b4)
341: 6(bool) CompositeExtract 340 0
342: 6(bool) LogicalOr 339 341
343: 43(bvec4) Load 45(b4)
344: 6(bool) CompositeExtract 343 1
345: 6(bool) LogicalOr 342 344
346: 43(bvec4) Load 45(b4)
347: 6(bool) CompositeExtract 346 2
348: 6(bool) LogicalOr 345 347
349: 43(bvec4) Load 45(b4)
350: 6(bool) CompositeExtract 349 3
351: 6(bool) LogicalOr 348 350
SelectionMerge 353 None
BranchConditional 351 352 415
352: Label
354: 9(int) Load 58(i)
355: 57(ptr) AccessChain 68(i2) 14
356: 9(int) Load 355
357: 9(int) IAdd 354 356
358: 57(ptr) AccessChain 68(i2) 315
359: 9(int) Load 358
360: 9(int) IAdd 357 359
361: 57(ptr) AccessChain 81(i3) 14
362: 9(int) Load 361
363: 9(int) IAdd 360 362
364: 57(ptr) AccessChain 81(i3) 315
365: 9(int) Load 364
366: 9(int) IAdd 363 365
368: 57(ptr) AccessChain 81(i3) 367
369: 9(int) Load 368
370: 9(int) IAdd 366 369
371: 57(ptr) AccessChain 94(i4) 14
372: 9(int) Load 371
373: 9(int) IAdd 370 372
374: 57(ptr) AccessChain 94(i4) 315
375: 9(int) Load 374
376: 9(int) IAdd 373 375
377: 57(ptr) AccessChain 94(i4) 367
378: 9(int) Load 377
379: 9(int) IAdd 376 378
381: 57(ptr) AccessChain 94(i4) 380
382: 9(int) Load 381
383: 9(int) IAdd 379 382
384: 16(float) ConvertSToF 383
385: 16(float) Load 106(f)
386: 16(float) FAdd 384 385
387: 105(ptr) AccessChain 110(f2) 14
388: 16(float) Load 387
389: 16(float) FAdd 386 388
390: 82(fvec3) Load 114(f3)
391: 16(float) CompositeExtract 390 0
390: 105(ptr) AccessChain 110(f2) 315
391: 16(float) Load 390
392: 16(float) FAdd 389 391
393: 82(fvec3) Load 114(f3)
394: 16(float) CompositeExtract 393 1
393: 105(ptr) AccessChain 114(f3) 14
394: 16(float) Load 393
395: 16(float) FAdd 392 394
396: 82(fvec3) Load 114(f3)
397: 16(float) CompositeExtract 396 2
396: 105(ptr) AccessChain 114(f3) 315
397: 16(float) Load 396
398: 16(float) FAdd 395 397
399: 95(fvec4) Load 118(f4)
400: 16(float) CompositeExtract 399 0
399: 105(ptr) AccessChain 114(f3) 367
400: 16(float) Load 399
401: 16(float) FAdd 398 400
402: 95(fvec4) Load 118(f4)
403: 16(float) CompositeExtract 402 1
402: 105(ptr) AccessChain 118(f4) 14
403: 16(float) Load 402
404: 16(float) FAdd 401 403
405: 95(fvec4) Load 118(f4)
406: 16(float) CompositeExtract 405 2
405: 105(ptr) AccessChain 118(f4) 315
406: 16(float) Load 405
407: 16(float) FAdd 404 406
408: 95(fvec4) Load 118(f4)
409: 16(float) CompositeExtract 408 3
408: 105(ptr) AccessChain 118(f4) 367
409: 16(float) Load 408
410: 16(float) FAdd 407 409
411: 95(fvec4) CompositeConstruct 410 410 410 410
Store 322 411
Branch 352
412: Label
Store 322 151
Branch 352
352: Label
413: 95(fvec4) Load 322
Store 321(gl_FragColor) 413
Store 414(cv2) 102
416: 92(ivec4) Load 414(cv2)
417: 43(bvec4) INotEqual 416 160
Store 415(cv5) 417
418: 43(bvec4) Load 415(cv5)
419: 95(fvec4) Select 418 151 150
420: 16(float) CompositeExtract 419 0
421: 95(fvec4) Load 321(gl_FragColor)
422: 95(fvec4) CompositeConstruct 420 420 420 420
423: 95(fvec4) FAdd 421 422
Store 321(gl_FragColor) 423
411: 105(ptr) AccessChain 118(f4) 380
412: 16(float) Load 411
413: 16(float) FAdd 410 412
414: 95(fvec4) CompositeConstruct 413 413 413 413
Store 323 414
Branch 353
415: Label
Store 323 151
Branch 353
353: Label
416: 95(fvec4) Load 323
Store 322(gl_FragColor) 416
Store 417(cv2) 102
419: 92(ivec4) Load 417(cv2)
420: 43(bvec4) INotEqual 419 160
Store 418(cv5) 420
421: 43(bvec4) Load 418(cv5)
422: 95(fvec4) Select 421 151 150
423: 16(float) CompositeExtract 422 0
424: 95(fvec4) Load 322(gl_FragColor)
425: 95(fvec4) CompositeConstruct 423 423 423 423
426: 95(fvec4) FAdd 424 425
Store 322(gl_FragColor) 426
Return
FunctionEnd