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

158
Test/baseResults/spv.functionCall.frag.out Normal file → Executable file
View File

@@ -5,16 +5,16 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 73
// Module Version 10000
// Generated by (magic number): 80001
// Id's are bound by 76
Source GLSL 130
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4 "main"
EntryPoint Fragment 4 "main" 57
ExecutionMode 4 OriginLowerLeft
Source GLSL 130
Name 4 "main"
Name 11 "foo(vf4;"
Name 10 "bar"
@@ -22,17 +22,14 @@ Linked fragment stage:
Name 16 "unreachableReturn("
Name 18 "missingReturn("
Name 21 "h"
Name 30 "d"
Name 51 "color"
Name 53 "BaseColor"
Name 54 "param"
Name 60 "f"
Name 62 "g"
Name 65 "gl_FragColor"
Name 72 "bigColor"
Decorate 53(BaseColor) Smooth
Decorate 65(gl_FragColor) BuiltIn FragColor
Decorate 72(bigColor) NoStaticUse
Name 34 "d"
Name 55 "color"
Name 57 "BaseColor"
Name 58 "param"
Name 63 "f"
Name 65 "g"
Name 68 "gl_FragColor"
Name 75 "bigColor"
2: TypeVoid
3: TypeFunction 2
6: TypeFloat 32
@@ -40,57 +37,60 @@ Linked fragment stage:
8: TypePointer Function 7(fvec4)
9: TypeFunction 6(float) 8(ptr)
15: TypeFunction 6(float)
20: TypePointer PrivateGlobal 6(float)
21(h): 20(ptr) Variable PrivateGlobal
20: TypePointer Private 6(float)
21(h): 20(ptr) Variable Private
22: 6(float) Constant 0
29: TypePointer UniformConstant 6(float)
30(d): 29(ptr) Variable UniformConstant
32: 6(float) Constant 1082549862
33: TypeBool
37: 6(float) Constant 1067030938
40: 6(float) Constant 1083179008
48: 6(float) Constant 1081711002
52: TypePointer Input 7(fvec4)
53(BaseColor): 52(ptr) Variable Input
59: TypePointer Function 6(float)
64: TypePointer Output 7(fvec4)
65(gl_FragColor): 64(ptr) Variable Output
71: TypePointer UniformConstant 7(fvec4)
72(bigColor): 71(ptr) Variable UniformConstant
23: TypeInt 32 0
24: 23(int) Constant 0
25: TypePointer Function 6(float)
28: 23(int) Constant 1
33: TypePointer UniformConstant 6(float)
34(d): 33(ptr) Variable UniformConstant
36: 6(float) Constant 1082549862
37: TypeBool
41: 6(float) Constant 1067030938
44: 6(float) Constant 1083179008
52: 6(float) Constant 1081711002
56: TypePointer Input 7(fvec4)
57(BaseColor): 56(ptr) Variable Input
67: TypePointer Output 7(fvec4)
68(gl_FragColor): 67(ptr) Variable Output
74: TypePointer UniformConstant 7(fvec4)
75(bigColor): 74(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
51(color): 8(ptr) Variable Function
54(param): 8(ptr) Variable Function
60(f): 59(ptr) Variable Function
62(g): 59(ptr) Variable Function
55(color): 8(ptr) Variable Function
58(param): 8(ptr) Variable Function
63(f): 25(ptr) Variable Function
65(g): 25(ptr) Variable Function
Store 21(h) 22
55: 7(fvec4) Load 53(BaseColor)
Store 54(param) 55
56: 6(float) FunctionCall 11(foo(vf4;) 54(param)
57: 7(fvec4) CompositeConstruct 56 56 56 56
Store 51(color) 57
58: 2 FunctionCall 13(bar()
61: 6(float) FunctionCall 16(unreachableReturn()
Store 60(f) 61
63: 6(float) FunctionCall 18(missingReturn()
Store 62(g) 63
66: 7(fvec4) Load 51(color)
67: 6(float) Load 60(f)
68: 7(fvec4) VectorTimesScalar 66 67
69: 6(float) Load 21(h)
70: 7(fvec4) VectorTimesScalar 68 69
Store 65(gl_FragColor) 70
59: 7(fvec4) Load 57(BaseColor)
Store 58(param) 59
60: 6(float) FunctionCall 11(foo(vf4;) 58(param)
61: 7(fvec4) CompositeConstruct 60 60 60 60
Store 55(color) 61
62: 2 FunctionCall 13(bar()
64: 6(float) FunctionCall 16(unreachableReturn()
Store 63(f) 64
66: 6(float) FunctionCall 18(missingReturn()
Store 65(g) 66
69: 7(fvec4) Load 55(color)
70: 6(float) Load 63(f)
71: 7(fvec4) VectorTimesScalar 69 70
72: 6(float) Load 21(h)
73: 7(fvec4) VectorTimesScalar 71 72
Store 68(gl_FragColor) 73
Return
FunctionEnd
11(foo(vf4;): 6(float) Function None 9
10(bar): 8(ptr) FunctionParameter
12: Label
23: 7(fvec4) Load 10(bar)
24: 6(float) CompositeExtract 23 0
25: 7(fvec4) Load 10(bar)
26: 6(float) CompositeExtract 25 1
27: 6(float) FAdd 24 26
ReturnValue 27
26: 25(ptr) AccessChain 10(bar) 24
27: 6(float) Load 26
29: 25(ptr) AccessChain 10(bar) 28
30: 6(float) Load 29
31: 6(float) FAdd 27 30
ReturnValue 31
FunctionEnd
13(bar(): 2 Function None 3
14: Label
@@ -98,29 +98,29 @@ Linked fragment stage:
FunctionEnd
16(unreachableReturn(): 6(float) Function None 15
17: Label
31: 6(float) Load 30(d)
34: 33(bool) FOrdLessThan 31 32
SelectionMerge 36 None
BranchConditional 34 35 39
35: Label
ReturnValue 37
35: 6(float) Load 34(d)
38: 37(bool) FOrdLessThan 35 36
SelectionMerge 40 None
BranchConditional 38 39 43
39: Label
ReturnValue 40
36: Label
42: 6(float) Undef
ReturnValue 42
ReturnValue 41
43: Label
ReturnValue 44
40: Label
46: 6(float) Undef
ReturnValue 46
FunctionEnd
18(missingReturn(): 6(float) Function None 15
19: Label
43: 6(float) Load 30(d)
44: 33(bool) FOrdLessThan 43 40
SelectionMerge 46 None
BranchConditional 44 45 46
45: Label
47: 6(float) Load 30(d)
Store 21(h) 47
ReturnValue 48
46: Label
50: 6(float) Undef
ReturnValue 50
47: 6(float) Load 34(d)
48: 37(bool) FOrdLessThan 47 44
SelectionMerge 50 None
BranchConditional 48 49 50
49: Label
51: 6(float) Load 34(d)
Store 21(h) 51
ReturnValue 52
50: Label
54: 6(float) Undef
ReturnValue 54
FunctionEnd