glslang SPV tests: Add a set of SPV tests.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31212 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
357
Test/baseResults/spv.uint.frag.out
Normal file
357
Test/baseResults/spv.uint.frag.out
Normal file
@@ -0,0 +1,357 @@
|
||||
spv.uint.frag
|
||||
|
||||
|
||||
|
||||
Linked fragment stage:
|
||||
|
||||
|
||||
|
||||
// Module Version 99
|
||||
// Generated by (magic number): 51a00bb
|
||||
// Id's are bound by 206
|
||||
|
||||
Source GLSL 300
|
||||
1: ExtInstImport "GLSL.std.450"
|
||||
MemoryModel Logical GLSL450
|
||||
EntryPoint Fragment 4
|
||||
Name 4 "main"
|
||||
Name 9 "count"
|
||||
Name 13 "u"
|
||||
Name 16 "t"
|
||||
Name 54 "shiftedii"
|
||||
Name 56 "shiftedui"
|
||||
Name 58 "shiftediu"
|
||||
Name 59 "shifteduu"
|
||||
Name 67 "c"
|
||||
Name 70 "usampler"
|
||||
Name 75 "tc"
|
||||
Name 108 "af"
|
||||
Name 112 "ab"
|
||||
Name 116 "ai"
|
||||
Name 151 "mask1"
|
||||
Name 153 "mask2"
|
||||
Name 155 "mask3"
|
||||
Name 159 "mask4"
|
||||
Name 199 "f"
|
||||
Name 201 "v"
|
||||
Name 203 "i"
|
||||
Name 205 "b"
|
||||
Decorate 9(count) PrecisionMedium
|
||||
Decorate 13(u) PrecisionMedium
|
||||
Decorate 16(t) PrecisionMedium
|
||||
Decorate 16(t) Flat
|
||||
Decorate 54(shiftedii) PrecisionMedium
|
||||
Decorate 56(shiftedui) PrecisionMedium
|
||||
Decorate 58(shiftediu) PrecisionMedium
|
||||
Decorate 59(shifteduu) PrecisionMedium
|
||||
Decorate 67(c) PrecisionMedium
|
||||
Decorate 70(usampler) PrecisionMedium
|
||||
Decorate 75(tc) PrecisionMedium
|
||||
Decorate 75(tc) Smooth
|
||||
Decorate 108(af) PrecisionMedium
|
||||
Decorate 116(ai) PrecisionMedium
|
||||
Decorate 151(mask1) PrecisionMedium
|
||||
Decorate 153(mask2) PrecisionMedium
|
||||
Decorate 155(mask3) PrecisionMedium
|
||||
Decorate 159(mask4) PrecisionMedium
|
||||
Decorate 199(f) PrecisionMedium
|
||||
Decorate 199(f) Smooth
|
||||
Decorate 199(f) NoStaticUse
|
||||
Decorate 201(v) PrecisionMedium
|
||||
Decorate 201(v) NoStaticUse
|
||||
Decorate 203(i) PrecisionMedium
|
||||
Decorate 203(i) NoStaticUse
|
||||
Decorate 205(b) NoStaticUse
|
||||
2: TypeVoid
|
||||
3: TypeFunction 2
|
||||
7: TypeInt 32 1
|
||||
8: TypePointer Function 7(int)
|
||||
10: 7(int) Constant 1
|
||||
11: TypeInt 32 0
|
||||
12: TypePointer Function 11(int)
|
||||
14: TypeVector 11(int) 2
|
||||
15: TypePointer Input 14(ivec2)
|
||||
16(t): 15(ptr) Variable Input
|
||||
19: 11(int) Constant 3
|
||||
21: TypeBool
|
||||
22: 21(bool) ConstantTrue
|
||||
25: 7(int) Constant 2
|
||||
30: 7(int) Constant 3
|
||||
33: 21(bool) ConstantFalse
|
||||
36: 7(int) Constant 5
|
||||
41: 7(int) Constant 7
|
||||
46: 7(int) Constant 11
|
||||
51: 7(int) Constant 13
|
||||
55: 7(int) Constant 4294967295
|
||||
57: 11(int) Constant 4194303
|
||||
65: TypeVector 11(int) 4
|
||||
66: TypePointer Output 65(ivec4)
|
||||
67(c): 66(ptr) Variable Output
|
||||
68: TypeSampler11(int) 2D filter+texture
|
||||
69: TypePointer UniformConstant 68
|
||||
70(usampler): 69(ptr) Variable UniformConstant
|
||||
72: TypeFloat 32
|
||||
73: TypeVector 72(float) 2
|
||||
74: TypePointer Input 73(fvec2)
|
||||
75(tc): 74(ptr) Variable Input
|
||||
85: 72(float) Constant 1065353216
|
||||
97: 72(float) Constant 1073741824
|
||||
98: 73(fvec2) ConstantComposite 97 97
|
||||
103: 11(int) Constant 4
|
||||
107: TypePointer Function 72(float)
|
||||
111: TypePointer Function 21(bool)
|
||||
114: 11(int) Constant 0
|
||||
122: 11(int) Constant 1
|
||||
133: 7(int) Constant 17
|
||||
138: 7(int) Constant 19
|
||||
143: 7(int) Constant 23
|
||||
148: 7(int) Constant 27
|
||||
152: 11(int) Constant 161
|
||||
154: 11(int) Constant 2576
|
||||
157: 7(int) Constant 4
|
||||
160: 11(int) Constant 2737
|
||||
198: TypePointer Input 72(float)
|
||||
199(f): 198(ptr) Variable Input
|
||||
200: TypePointer UniformConstant 65(ivec4)
|
||||
201(v): 200(ptr) Variable UniformConstant
|
||||
202: TypePointer UniformConstant 7(int)
|
||||
203(i): 202(ptr) Variable UniformConstant
|
||||
204: TypePointer UniformConstant 21(bool)
|
||||
205(b): 204(ptr) Variable UniformConstant
|
||||
4(main): 2 Function None 3
|
||||
5: Label
|
||||
9(count): 8(ptr) Variable Function
|
||||
13(u): 12(ptr) Variable Function
|
||||
54(shiftedii): 8(ptr) Variable Function
|
||||
56(shiftedui): 12(ptr) Variable Function
|
||||
58(shiftediu): 8(ptr) Variable Function
|
||||
59(shifteduu): 12(ptr) Variable Function
|
||||
108(af): 107(ptr) Variable Function
|
||||
112(ab): 111(ptr) Variable Function
|
||||
116(ai): 8(ptr) Variable Function
|
||||
151(mask1): 12(ptr) Variable Function
|
||||
153(mask2): 12(ptr) Variable Function
|
||||
155(mask3): 12(ptr) Variable Function
|
||||
159(mask4): 12(ptr) Variable Function
|
||||
Store 9(count) 10
|
||||
17: 14(ivec2) Load 16(t)
|
||||
18: 11(int) CompositeExtract 17 1
|
||||
20: 11(int) IAdd 18 19
|
||||
Store 13(u) 20
|
||||
SelectionMerge 24 None
|
||||
BranchConditional 22 23 24
|
||||
23: Label
|
||||
26: 7(int) Load 9(count)
|
||||
27: 7(int) IMul 26 25
|
||||
Store 9(count) 27
|
||||
Branch 24
|
||||
24: Label
|
||||
SelectionMerge 29 None
|
||||
BranchConditional 22 28 29
|
||||
28: Label
|
||||
31: 7(int) Load 9(count)
|
||||
32: 7(int) IMul 31 30
|
||||
Store 9(count) 32
|
||||
Branch 29
|
||||
29: Label
|
||||
SelectionMerge 35 None
|
||||
BranchConditional 33 34 35
|
||||
34: Label
|
||||
37: 7(int) Load 9(count)
|
||||
38: 7(int) IMul 37 36
|
||||
Store 9(count) 38
|
||||
Branch 35
|
||||
35: Label
|
||||
SelectionMerge 40 None
|
||||
BranchConditional 22 39 40
|
||||
39: Label
|
||||
42: 7(int) Load 9(count)
|
||||
43: 7(int) IMul 42 41
|
||||
Store 9(count) 43
|
||||
Branch 40
|
||||
40: Label
|
||||
SelectionMerge 45 None
|
||||
BranchConditional 22 44 45
|
||||
44: Label
|
||||
47: 7(int) Load 9(count)
|
||||
48: 7(int) IMul 47 46
|
||||
Store 9(count) 48
|
||||
Branch 45
|
||||
45: Label
|
||||
SelectionMerge 50 None
|
||||
BranchConditional 33 49 50
|
||||
49: Label
|
||||
52: 7(int) Load 9(count)
|
||||
53: 7(int) IMul 52 51
|
||||
Store 9(count) 53
|
||||
Branch 50
|
||||
50: Label
|
||||
Store 54(shiftedii) 55
|
||||
Store 56(shiftedui) 57
|
||||
Store 58(shiftediu) 55
|
||||
Store 59(shifteduu) 57
|
||||
60: 7(int) Load 54(shiftedii)
|
||||
61: 7(int) Load 58(shiftediu)
|
||||
62: 21(bool) IEqual 60 61
|
||||
SelectionMerge 64 None
|
||||
BranchConditional 62 63 64
|
||||
63: Label
|
||||
71: 68 Load 70(usampler)
|
||||
76: 73(fvec2) Load 75(tc)
|
||||
77: 65(ivec4) TextureSample 71 76
|
||||
Store 67(c) 77
|
||||
Branch 64
|
||||
64: Label
|
||||
78: 11(int) Load 56(shiftedui)
|
||||
79: 11(int) Load 59(shifteduu)
|
||||
80: 21(bool) IEqual 78 79
|
||||
SelectionMerge 82 None
|
||||
BranchConditional 80 81 82
|
||||
81: Label
|
||||
83: 68 Load 70(usampler)
|
||||
84: 73(fvec2) Load 75(tc)
|
||||
86: 73(fvec2) CompositeConstruct 85 85
|
||||
87: 73(fvec2) FAdd 84 86
|
||||
88: 65(ivec4) TextureSample 83 87
|
||||
Store 67(c) 88
|
||||
Branch 82
|
||||
82: Label
|
||||
89: 7(int) Load 54(shiftedii)
|
||||
90: 11(int) Load 56(shiftedui)
|
||||
91: 7(int) Bitcast 90
|
||||
92: 21(bool) IEqual 89 91
|
||||
SelectionMerge 94 None
|
||||
BranchConditional 92 93 94
|
||||
93: Label
|
||||
95: 68 Load 70(usampler)
|
||||
96: 73(fvec2) Load 75(tc)
|
||||
99: 73(fvec2) FSub 96 98
|
||||
100: 65(ivec4) TextureSample 95 99
|
||||
Store 67(c) 100
|
||||
Branch 94
|
||||
94: Label
|
||||
101: 14(ivec2) Load 16(t)
|
||||
102: 11(int) CompositeExtract 101 0
|
||||
104: 21(bool) UGreaterThan 102 103
|
||||
SelectionMerge 106 None
|
||||
BranchConditional 104 105 106
|
||||
105: Label
|
||||
109: 11(int) Load 13(u)
|
||||
110: 72(float) ConvertUToF 109
|
||||
Store 108(af) 110
|
||||
113: 11(int) Load 13(u)
|
||||
115: 21(bool) INotEqual 113 114
|
||||
Store 112(ab) 115
|
||||
117: 11(int) Load 13(u)
|
||||
118: 7(int) Bitcast 117
|
||||
Store 116(ai) 118
|
||||
119: 72(float) Load 108(af)
|
||||
120: 11(int) ConvertFToU 119
|
||||
121: 21(bool) Load 112(ab)
|
||||
123: 11(int) Select 121 122 114
|
||||
124: 7(int) Load 116(ai)
|
||||
125: 11(int) Bitcast 124
|
||||
126: 7(int) Load 9(count)
|
||||
127: 11(int) Bitcast 126
|
||||
128: 65(ivec4) CompositeConstruct 120 123 125 127
|
||||
129: 65(ivec4) Load 67(c)
|
||||
130: 65(ivec4) IAdd 129 128
|
||||
Store 67(c) 130
|
||||
Branch 106
|
||||
106: Label
|
||||
SelectionMerge 132 None
|
||||
BranchConditional 22 131 132
|
||||
131: Label
|
||||
134: 7(int) Load 9(count)
|
||||
135: 7(int) IMul 134 133
|
||||
Store 9(count) 135
|
||||
Branch 132
|
||||
132: Label
|
||||
SelectionMerge 137 None
|
||||
BranchConditional 33 136 137
|
||||
136: Label
|
||||
139: 7(int) Load 9(count)
|
||||
140: 7(int) IMul 139 138
|
||||
Store 9(count) 140
|
||||
Branch 137
|
||||
137: Label
|
||||
SelectionMerge 142 None
|
||||
BranchConditional 22 141 142
|
||||
141: Label
|
||||
144: 7(int) Load 9(count)
|
||||
145: 7(int) IMul 144 143
|
||||
Store 9(count) 145
|
||||
Branch 142
|
||||
142: Label
|
||||
SelectionMerge 147 None
|
||||
BranchConditional 22 146 147
|
||||
146: Label
|
||||
149: 7(int) Load 9(count)
|
||||
150: 7(int) IMul 149 148
|
||||
Store 9(count) 150
|
||||
Branch 147
|
||||
147: Label
|
||||
Store 151(mask1) 152
|
||||
Store 153(mask2) 154
|
||||
156: 11(int) Load 151(mask1)
|
||||
158: 11(int) ShiftLeftLogical 156 157
|
||||
Store 155(mask3) 158
|
||||
Store 159(mask4) 160
|
||||
161: 11(int) Load 155(mask3)
|
||||
162: 11(int) Load 153(mask2)
|
||||
163: 21(bool) IEqual 161 162
|
||||
SelectionMerge 165 None
|
||||
BranchConditional 163 164 165
|
||||
164: Label
|
||||
166: 7(int) Load 9(count)
|
||||
167: 7(int) IMul 166 25
|
||||
Store 9(count) 167
|
||||
Branch 165
|
||||
165: Label
|
||||
168: 11(int) Load 155(mask3)
|
||||
169: 11(int) Load 151(mask1)
|
||||
170: 11(int) BitwiseAnd 168 169
|
||||
171: 21(bool) INotEqual 170 114
|
||||
SelectionMerge 173 None
|
||||
BranchConditional 171 172 173
|
||||
172: Label
|
||||
174: 7(int) Load 9(count)
|
||||
175: 7(int) IMul 174 30
|
||||
Store 9(count) 175
|
||||
Branch 173
|
||||
173: Label
|
||||
176: 11(int) Load 151(mask1)
|
||||
177: 11(int) Load 155(mask3)
|
||||
178: 11(int) BitwiseOr 176 177
|
||||
179: 11(int) Load 159(mask4)
|
||||
180: 21(bool) IEqual 178 179
|
||||
SelectionMerge 182 None
|
||||
BranchConditional 180 181 182
|
||||
181: Label
|
||||
183: 7(int) Load 9(count)
|
||||
184: 7(int) IMul 183 36
|
||||
Store 9(count) 184
|
||||
Branch 182
|
||||
182: Label
|
||||
185: 11(int) Load 151(mask1)
|
||||
186: 11(int) Load 159(mask4)
|
||||
187: 11(int) BitwiseXor 185 186
|
||||
188: 21(bool) IEqual 187 154
|
||||
SelectionMerge 190 None
|
||||
BranchConditional 188 189 190
|
||||
189: Label
|
||||
191: 7(int) Load 9(count)
|
||||
192: 7(int) IMul 191 41
|
||||
Store 9(count) 192
|
||||
Branch 190
|
||||
190: Label
|
||||
193: 7(int) Load 9(count)
|
||||
194: 11(int) Bitcast 193
|
||||
195: 65(ivec4) CompositeConstruct 194 194 194 194
|
||||
196: 65(ivec4) Load 67(c)
|
||||
197: 65(ivec4) IAdd 196 195
|
||||
Store 67(c) 197
|
||||
Branch 6
|
||||
6: Label
|
||||
Return
|
||||
FunctionEnd
|
||||
Reference in New Issue
Block a user