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,27 +3,25 @@ spv.always-discard.frag
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 80
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 84
Source GLSL 110
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
EntryPoint Fragment 4 "main" 21
ExecutionMode 4 OriginLowerLeft
Source GLSL 110
Name 4 "main"
Name 9 "white"
Name 12 "black"
Name 15 "color"
Name 18 "x"
Name 21 "tex_coord"
Name 27 "y"
Name 32 "radius"
Name 55 "gl_FragColor"
Decorate 21(tex_coord) Smooth
Decorate 55(gl_FragColor) BuiltIn FragColor
Name 30 "y"
Name 36 "radius"
Name 59 "gl_FragColor"
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -37,94 +35,98 @@ Linked fragment stage:
19: TypeVector 6(float) 2
20: TypePointer Input 19(fvec2)
21(tex_coord): 20(ptr) Variable Input
24: 6(float) Constant 1073741824
42: TypeBool
47: 6(float) Constant 1066192077
54: TypePointer Output 7(fvec4)
55(gl_FragColor): 54(ptr) Variable Output
58: 6(float) Constant 1067030938
67: 6(float) Constant 1061158912
72: 6(float) Constant 1098907648
22: TypeInt 32 0
23: 22(int) Constant 0
24: TypePointer Input 6(float)
27: 6(float) Constant 1073741824
31: 22(int) Constant 1
46: TypeBool
51: 6(float) Constant 1066192077
58: TypePointer Output 7(fvec4)
59(gl_FragColor): 58(ptr) Variable Output
62: 6(float) Constant 1067030938
71: 6(float) Constant 1061158912
76: 6(float) Constant 1098907648
4(main): 2 Function None 3
5: Label
9(white): 8(ptr) Variable Function
12(black): 8(ptr) Variable Function
15(color): 8(ptr) Variable Function
18(x): 17(ptr) Variable Function
27(y): 17(ptr) Variable Function
32(radius): 17(ptr) Variable Function
30(y): 17(ptr) Variable Function
36(radius): 17(ptr) Variable Function
Store 9(white) 11
Store 12(black) 14
16: 7(fvec4) Load 9(white)
Store 15(color) 16
22: 19(fvec2) Load 21(tex_coord)
23: 6(float) CompositeExtract 22 0
25: 6(float) FMul 23 24
26: 6(float) FSub 25 10
Store 18(x) 26
28: 19(fvec2) Load 21(tex_coord)
29: 6(float) CompositeExtract 28 1
30: 6(float) FMul 29 24
31: 6(float) FSub 30 10
Store 27(y) 31
33: 6(float) Load 18(x)
34: 6(float) Load 18(x)
35: 6(float) FMul 33 34
36: 6(float) Load 27(y)
37: 6(float) Load 27(y)
38: 6(float) FMul 36 37
39: 6(float) FAdd 35 38
40: 6(float) ExtInst 1(GLSL.std.450) 31(Sqrt) 39
Store 32(radius) 40
41: 6(float) Load 32(radius)
43: 42(bool) FOrdGreaterThan 41 10
SelectionMerge 45 None
BranchConditional 43 44 45
44: Label
46: 6(float) Load 32(radius)
48: 42(bool) FOrdGreaterThan 46 47
SelectionMerge 50 None
BranchConditional 48 49 50
49: Label
51: 7(fvec4) Load 15(color)
52: 7(fvec4) CompositeConstruct 10 10 10 10
53: 7(fvec4) FAdd 51 52
Store 15(color) 53
Branch 50
50: Label
56: 7(fvec4) Load 15(color)
Store 55(gl_FragColor) 56
57: 6(float) Load 32(radius)
59: 42(bool) FOrdGreaterThan 57 58
SelectionMerge 61 None
BranchConditional 59 60 61
60: Label
62: 7(fvec4) Load 15(color)
63: 7(fvec4) CompositeConstruct 10 10 10 10
64: 7(fvec4) FAdd 62 63
Store 15(color) 64
Branch 61
61: Label
Branch 45
45: Label
25: 24(ptr) AccessChain 21(tex_coord) 23
26: 6(float) Load 25
28: 6(float) FMul 26 27
29: 6(float) FSub 28 10
Store 18(x) 29
32: 24(ptr) AccessChain 21(tex_coord) 31
33: 6(float) Load 32
34: 6(float) FMul 33 27
35: 6(float) FSub 34 10
Store 30(y) 35
37: 6(float) Load 18(x)
38: 6(float) Load 18(x)
39: 6(float) FMul 37 38
40: 6(float) Load 30(y)
41: 6(float) Load 30(y)
42: 6(float) FMul 40 41
43: 6(float) FAdd 39 42
44: 6(float) ExtInst 1(GLSL.std.450) 31(Sqrt) 43
Store 36(radius) 44
45: 6(float) Load 36(radius)
47: 46(bool) FOrdGreaterThan 45 10
SelectionMerge 49 None
BranchConditional 47 48 49
48: Label
50: 6(float) Load 36(radius)
52: 46(bool) FOrdGreaterThan 50 51
SelectionMerge 54 None
BranchConditional 52 53 54
53: Label
55: 7(fvec4) Load 15(color)
56: 7(fvec4) CompositeConstruct 10 10 10 10
57: 7(fvec4) FAdd 55 56
Store 15(color) 57
Branch 54
54: Label
60: 7(fvec4) Load 15(color)
Store 59(gl_FragColor) 60
61: 6(float) Load 36(radius)
63: 46(bool) FOrdGreaterThan 61 62
SelectionMerge 65 None
BranchConditional 63 64 65
64: Label
66: 7(fvec4) Load 15(color)
67: 7(fvec4) CompositeConstruct 10 10 10 10
68: 7(fvec4) FAdd 66 67
Store 15(color) 68
Branch 65
65: Label
Branch 49
49: Label
Kill
65: Label
66: 6(float) Load 32(radius)
68: 42(bool) FOrdGreaterThanEqual 66 67
SelectionMerge 70 None
BranchConditional 68 69 70
69: Label
71: 6(float) Load 32(radius)
73: 6(float) ExtInst 1(GLSL.std.450) 26(Pow) 71 72
74: 6(float) FDiv 73 24
75: 6(float) ExtInst 1(GLSL.std.450) 4(FAbs) 74
76: 7(fvec4) Load 15(color)
77: 7(fvec4) CompositeConstruct 75 75 75 75
78: 7(fvec4) FSub 76 77
Store 15(color) 78
Branch 70
70: Label
79: 7(fvec4) Load 15(color)
Store 55(gl_FragColor) 79
69: Label
70: 6(float) Load 36(radius)
72: 46(bool) FOrdGreaterThanEqual 70 71
SelectionMerge 74 None
BranchConditional 72 73 74
73: Label
75: 6(float) Load 36(radius)
77: 6(float) ExtInst 1(GLSL.std.450) 26(Pow) 75 76
78: 6(float) FDiv 77 27
79: 6(float) ExtInst 1(GLSL.std.450) 4(FAbs) 78
80: 7(fvec4) Load 15(color)
81: 7(fvec4) CompositeConstruct 79 79 79 79
82: 7(fvec4) FSub 80 81
Store 15(color) 82
Branch 74
74: Label
83: 7(fvec4) Load 15(color)
Store 59(gl_FragColor) 83
Return
FunctionEnd