Move to revision 31 of SPIR-V.

This commit is contained in:
John Kessenich 2015-08-06 22:53:06 -06:00
parent e24a74c320
commit 5e4b1242bf
77 changed files with 6050 additions and 5450 deletions

117
Test/baseResults/spv.structDeref.frag.out Normal file → Executable file
View file

@ -7,12 +7,14 @@ Linked fragment stage:
// Module Version 99
// Generated by (magic number): 51a00bb
// Id's are bound by 120
// Id's are bound by 121
Source GLSL 130
Capability Shader
1: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint Fragment 4
EntryPoint Fragment 4 "main"
ExecutionMode 4 OriginLowerLeft
Name 4 "main"
Name 9 "s0"
MemberName 9(s0) 0 "i"
@ -42,13 +44,13 @@ Linked fragment stage:
Name 69 "foo0"
Name 84 "foo00"
Name 97 "gl_FragColor"
Name 113 "sampler"
Name 119 "foo2"
Decorate 62(coord) Smooth
Name 114 "sampler"
Name 120 "foo2"
Decorate 62(coord) Smooth
Decorate 97(gl_FragColor) BuiltIn FragColor
Decorate 119(foo2) NoStaticUse
Decorate 120(foo2) NoStaticUse
2: TypeVoid
3: TypeFunction 2
3: TypeFunction 2
7: TypeInt 32 1
8: TypeFloat 32
9(s0): TypeStruct 7(int)
@ -59,7 +61,7 @@ Linked fragment stage:
14: TypeArray 11(s2) 13
15(s3): TypeStruct 14 7(int) 8(float) 10(s1)
16: TypePointer UniformConstant 15(s3)
17(foo3): 16(ptr) Variable UniformConstant
17(foo3): 16(ptr) Variable UniformConstant
18: 7(int) Constant 0
19: 7(int) Constant 9
20: TypePointer UniformConstant 7(int)
@ -82,109 +84,110 @@ Linked fragment stage:
46: TypePointer Function 45
48: 7(int) Constant 6
49: TypePointer UniformConstant 10(s1)
50(foo1): 49(ptr) Variable UniformConstant
50(foo1): 49(ptr) Variable UniformConstant
53: TypePointer Function 9(s0)
55(s00): TypeStruct 9(s0)
56: TypePointer Function 55(s00)
58: 55(s00) ConstantComposite 34
60: TypeVector 8(float) 2
61: TypePointer Input 60(fvec2)
62(coord): 61(ptr) Variable Input
62(coord): 61(ptr) Variable Input
68: TypePointer UniformConstant 9(s0)
69(foo0): 68(ptr) Variable UniformConstant
69(foo0): 68(ptr) Variable UniformConstant
73: 8(float) Constant 1073741824
74: 8(float) Constant 1077936128
75: 8(float) Constant 1082130432
76: 8(float) Constant 1084227584
77: 39 ConstantComposite 42 30 73 74 75 76
83: TypePointer UniformConstant 55(s00)
84(foo00): 83(ptr) Variable UniformConstant
84(foo00): 83(ptr) Variable UniformConstant
86: TypePointer Function 7(int)
89: 7(int) Constant 5
95: TypeVector 8(float) 4
96: TypePointer Output 95(fvec4)
97(gl_FragColor): 96(ptr) Variable Output
97(gl_FragColor): 96(ptr) Variable Output
104: 7(int) Constant 3
111: TypeSampler8(float) 2D filter+texture
112: TypePointer UniformConstant 111
113(sampler): 112(ptr) Variable UniformConstant
118: TypePointer UniformConstant 11(s2)
119(foo2): 118(ptr) Variable UniformConstant
111: TypeImage 8(float) 2D sampled format:Unknown
112: TypeSampledImage 111
113: TypePointer UniformConstant 112
114(sampler): 113(ptr) Variable UniformConstant
119: TypePointer UniformConstant 11(s2)
120(foo2): 119(ptr) Variable UniformConstant
4(main): 2 Function None 3
5: Label
28(locals2): 27(ptr) Variable Function
41(fArray): 40(ptr) Variable Function
47(locals1Array): 46(ptr) Variable Function
54(locals0): 53(ptr) Variable Function
57(locals00): 56(ptr) Variable Function
28(locals2): 27(ptr) Variable Function
41(fArray): 40(ptr) Variable Function
47(locals1Array): 46(ptr) Variable Function
54(locals0): 53(ptr) Variable Function
57(locals00): 56(ptr) Variable Function
21: 20(ptr) AccessChain 17(foo3) 18 19 18
22: 7(int) Load 21
22: 7(int) Load 21
24: 23(bool) SGreaterThan 22 18
SelectionMerge 26 None
BranchConditional 24 25 59
BranchConditional 24 25 59
25: Label
32: 31(ptr) AccessChain 28(locals2) 29
Store 32 30
Store 32 30
37: 36(ptr) AccessChain 28(locals2) 33
Store 37 35
Store 41(fArray) 43
51: 10(s1) Load 50(foo1)
Store 37 35
Store 41(fArray) 43
51: 10(s1) Load 50(foo1)
52: 36(ptr) AccessChain 47(locals1Array) 48
Store 52 51
Store 54(locals0) 34
Store 57(locals00) 58
Store 52 51
Store 54(locals0) 34
Store 57(locals00) 58
Branch 26
59: Label
63: 60(fvec2) Load 62(coord)
63: 60(fvec2) Load 62(coord)
64: 8(float) CompositeExtract 63 0
65: 31(ptr) AccessChain 28(locals2) 29
Store 65 64
66: 60(fvec2) Load 62(coord)
Store 65 64
66: 60(fvec2) Load 62(coord)
67: 8(float) CompositeExtract 66 1
70: 9(s0) Load 69(foo0)
70: 9(s0) Load 69(foo0)
71: 10(s1) CompositeConstruct 29 67 70
72: 36(ptr) AccessChain 28(locals2) 33
Store 72 71
Store 41(fArray) 77
Store 72 71
Store 41(fArray) 77
78: 36(ptr) AccessChain 28(locals2) 33
79: 10(s1) Load 78
79: 10(s1) Load 78
80: 36(ptr) AccessChain 47(locals1Array) 48
Store 80 79
Store 80 79
81: 68(ptr) AccessChain 50(foo1) 33
82: 9(s0) Load 81
Store 54(locals0) 82
85: 55(s00) Load 84(foo00)
Store 57(locals00) 85
82: 9(s0) Load 81
Store 54(locals0) 82
85: 55(s00) Load 84(foo00)
Store 57(locals00) 85
Branch 26
26: Label
87: 86(ptr) AccessChain 54(locals0) 18
88: 7(int) Load 87
88: 7(int) Load 87
90: 23(bool) SGreaterThan 88 89
SelectionMerge 92 None
BranchConditional 90 91 92
BranchConditional 90 91 92
91: Label
93: 53(ptr) AccessChain 57(locals00) 18
94: 9(s0) Load 93
Store 54(locals0) 94
94: 9(s0) Load 93
Store 54(locals0) 94
Branch 92
92: Label
98: 86(ptr) AccessChain 54(locals0) 18
99: 7(int) Load 98
99: 7(int) Load 98
100: 8(float) ConvertSToF 99
101: 31(ptr) AccessChain 47(locals1Array) 48 29
102: 8(float) Load 101
102: 8(float) Load 101
103: 8(float) FAdd 100 102
105: 31(ptr) AccessChain 41(fArray) 104
106: 8(float) Load 105
106: 8(float) Load 105
107: 8(float) FAdd 103 106
108: 31(ptr) AccessChain 28(locals2) 33 29
109: 8(float) Load 108
109: 8(float) Load 108
110: 8(float) FAdd 107 109
114: 111 Load 113(sampler)
115: 60(fvec2) Load 62(coord)
116: 95(fvec4) TextureSample 114 115
117: 95(fvec4) VectorTimesScalar 116 110
Store 97(gl_FragColor) 117
115: 112 Load 114(sampler)
116: 60(fvec2) Load 62(coord)
117: 95(fvec4) ImageSampleImplicitLod 115 116
118: 95(fvec4) VectorTimesScalar 117 110
Store 97(gl_FragColor) 118
Branch 6
6: Label
Return