blob: 4bc948b1893226f6d74b9d39a53b0cdbc2f508f4 [file] [log] [blame]
qining13545202016-03-21 09:51:37 -04001spv.specConstantOperations.vert
John Kessenich2b5ea9f2018-01-31 18:35:56 -07002// Module Version 10000
John Kessenichd6c97552018-06-04 15:33:31 -06003// Generated by (magic number): 80007
John Kesseniche434ad92017-03-30 10:09:28 -06004// Id's are bound by 162
qining13545202016-03-21 09:51:37 -04005
6 Capability Shader
Rex Xu64bcfdb2016-09-05 16:10:14 +08007 Capability Float64
qining13545202016-03-21 09:51:37 -04008 1: ExtInstImport "GLSL.std.450"
9 MemoryModel Logical GLSL450
10 EntryPoint Vertex 4 "main"
11 Source GLSL 450
12 Name 4 "main"
qining4c912612016-04-01 10:35:16 -040013 Name 8 "non_const_array_size_from_spec_const("
qininge24aa5e2016-04-07 15:40:27 -040014 Name 11 "i"
Endre Omaad58d452017-01-31 21:08:19 +010015 Name 19 "sp_int"
qininge24aa5e2016-04-07 15:40:27 -040016 Name 27 "array"
Endre Omaad58d452017-01-31 21:08:19 +010017 Name 40 "sp_float"
18 Name 42 "sp_uint"
19 Name 43 "sp_sint"
20 Name 45 "sp_double"
John Kessenich8e6c6ce2017-01-28 19:29:42 -070021 Name 135 "a"
22 Name 136 "b"
23 Name 137 "c"
24 Name 142 "ternayArray1"
Endre Omaad58d452017-01-31 21:08:19 +010025 Decorate 19(sp_int) SpecId 201
26 Decorate 40(sp_float) SpecId 200
27 Decorate 42(sp_uint) SpecId 202
28 Decorate 43(sp_sint) SpecId 203
29 Decorate 45(sp_double) SpecId 204
John Kessenich8e6c6ce2017-01-28 19:29:42 -070030 Decorate 135(a) SpecId 210
31 Decorate 136(b) SpecId 211
32 Decorate 137(c) SpecId 212
qining13545202016-03-21 09:51:37 -040033 2: TypeVoid
34 3: TypeFunction 2
qining4c912612016-04-01 10:35:16 -040035 6: TypeInt 32 1
36 7: TypeFunction 6(int)
qininge24aa5e2016-04-07 15:40:27 -040037 10: TypePointer Function 6(int)
38 12: 6(int) Constant 0
Endre Omaad58d452017-01-31 21:08:19 +010039 19(sp_int): 6(int) SpecConstant 10
qininge24aa5e2016-04-07 15:40:27 -040040 20: 6(int) Constant 2
Endre Omaad58d452017-01-31 21:08:19 +010041 21: 6(int) SpecConstantOp 128 19(sp_int) 20
qininge24aa5e2016-04-07 15:40:27 -040042 22: TypeBool
Endre Omaad58d452017-01-31 21:08:19 +010043 24: 6(int) SpecConstantOp 128 19(sp_int) 20
qininge24aa5e2016-04-07 15:40:27 -040044 25: TypeArray 6(int) 24
45 26: TypePointer Function 25
46 29: 6(int) Constant 1023
47 32: 6(int) Constant 1
Endre Omaad58d452017-01-31 21:08:19 +010048 34: 6(int) SpecConstantOp 128 19(sp_int) 32
qininge24aa5e2016-04-07 15:40:27 -040049 39: TypeFloat 32
Endre Omaad58d452017-01-31 21:08:19 +010050 40(sp_float): 39(float) SpecConstant 1078530010
qininge24aa5e2016-04-07 15:40:27 -040051 41: TypeInt 32 0
Endre Omaad58d452017-01-31 21:08:19 +010052 42(sp_uint): 41(int) SpecConstant 100
53 43(sp_sint): 6(int) SpecConstant 4294967286
Rex Xu64bcfdb2016-09-05 16:10:14 +080054 44: TypeFloat 64
Jeff Bolzaf7a9482018-05-22 23:13:30 -050055 45(sp_double):44(float64_t) SpecConstant 2333366019 1074118410
Endre Omaad58d452017-01-31 21:08:19 +010056 46: 39(float) SpecConstantOp 115 45(sp_double)
Jeff Bolzaf7a9482018-05-22 23:13:30 -050057 47:44(float64_t) SpecConstantOp 115 40(sp_float)
Rex Xu64bcfdb2016-09-05 16:10:14 +080058 48: 41(int) Constant 0
Endre Omaad58d452017-01-31 21:08:19 +010059 49: 22(bool) SpecConstantOp 171 19(sp_int) 48
60 50: 22(bool) SpecConstantOp 171 42(sp_uint) 48
Rex Xu64bcfdb2016-09-05 16:10:14 +080061 51: 6(int) SpecConstantOp 169 49 32 12
62 52: 41(int) Constant 1
63 53: 41(int) SpecConstantOp 169 49 52 48
Endre Omaad58d452017-01-31 21:08:19 +010064 54: 41(int) SpecConstantOp 128 43(sp_sint) 48
65 55: 6(int) SpecConstantOp 128 42(sp_uint) 48
66 56: 6(int) SpecConstantOp 126 19(sp_int)
67 57: 6(int) SpecConstantOp 200 19(sp_int)
68 58: 6(int) SpecConstantOp 128 19(sp_int) 20
69 59: 6(int) SpecConstantOp 128 19(sp_int) 20
Rex Xu64bcfdb2016-09-05 16:10:14 +080070 60: 6(int) Constant 3
71 61: 6(int) SpecConstantOp 130 59 60
72 62: 6(int) Constant 4
73 63: 6(int) SpecConstantOp 130 58 62
Endre Omaad58d452017-01-31 21:08:19 +010074 64: 6(int) SpecConstantOp 132 43(sp_sint) 20
Rex Xu64bcfdb2016-09-05 16:10:14 +080075 65: 41(int) Constant 2
Endre Omaad58d452017-01-31 21:08:19 +010076 66: 41(int) SpecConstantOp 132 42(sp_uint) 65
Rex Xu64bcfdb2016-09-05 16:10:14 +080077 67: 6(int) Constant 5
78 68: 6(int) SpecConstantOp 135 64 67
79 69: 41(int) Constant 5
80 70: 41(int) SpecConstantOp 134 66 69
Endre Omaad58d452017-01-31 21:08:19 +010081 71: 6(int) SpecConstantOp 139 43(sp_sint) 62
Rex Xu64bcfdb2016-09-05 16:10:14 +080082 72: 41(int) Constant 4
Endre Omaad58d452017-01-31 21:08:19 +010083 73: 41(int) SpecConstantOp 137 42(sp_uint) 72
84 74: 6(int) SpecConstantOp 132 43(sp_sint) 60
Rex Xu64bcfdb2016-09-05 16:10:14 +080085 75: 6(int) SpecConstantOp 135 74 67
86 76: 6(int) Constant 10
Endre Omaad58d452017-01-31 21:08:19 +010087 77: 6(int) SpecConstantOp 195 43(sp_sint) 76
Rex Xu64bcfdb2016-09-05 16:10:14 +080088 78: 6(int) Constant 20
Endre Omaad58d452017-01-31 21:08:19 +010089 79: 41(int) SpecConstantOp 194 42(sp_uint) 78
90 80: 6(int) SpecConstantOp 196 43(sp_sint) 32
91 81: 41(int) SpecConstantOp 196 42(sp_uint) 20
Rex Xu64bcfdb2016-09-05 16:10:14 +080092 82: 6(int) Constant 256
Endre Omaad58d452017-01-31 21:08:19 +010093 83: 6(int) SpecConstantOp 197 43(sp_sint) 82
Rex Xu64bcfdb2016-09-05 16:10:14 +080094 84: 41(int) Constant 512
Endre Omaad58d452017-01-31 21:08:19 +010095 85: 41(int) SpecConstantOp 198 42(sp_uint) 84
96 86: 22(bool) SpecConstantOp 177 19(sp_int) 43(sp_sint)
97 87: 22(bool) SpecConstantOp 170 42(sp_uint) 42(sp_uint)
98 88: 22(bool) SpecConstantOp 173 19(sp_int) 43(sp_sint)
Rex Xu64bcfdb2016-09-05 16:10:14 +080099 89: 6(int) Constant 30
100 90: TypeVector 6(int) 4
Endre Omaad58d452017-01-31 21:08:19 +0100101 91: 90(ivec4) SpecConstantComposite 78 89 19(sp_int) 19(sp_int)
Rex Xu64bcfdb2016-09-05 16:10:14 +0800102 92: 41(int) Constant 4294967295
103 93: 41(int) Constant 4294967294
104 94: TypeVector 41(int) 4
Endre Omaad58d452017-01-31 21:08:19 +0100105 95: 94(ivec4) SpecConstantComposite 42(sp_uint) 42(sp_uint) 92 93
Rex Xu64bcfdb2016-09-05 16:10:14 +0800106 96: TypeVector 22(bool) 4
107 97: 94(ivec4) ConstantComposite 48 48 48 48
108 98: 96(bvec4) SpecConstantOp 171 91 97
109 99: 96(bvec4) SpecConstantOp 171 95 97
110 100: 90(ivec4) ConstantComposite 12 12 12 12
111 101: 90(ivec4) ConstantComposite 32 32 32 32
112 102: 90(ivec4) SpecConstantOp 169 98 101 100
113 103: 94(ivec4) ConstantComposite 52 52 52 52
114 104: 94(ivec4) SpecConstantOp 169 98 103 97
115 105: 94(ivec4) SpecConstantOp 128 91 97
116 106: 90(ivec4) SpecConstantOp 128 95 97
117 107: 90(ivec4) SpecConstantOp 200 91
118 108: 90(ivec4) SpecConstantOp 126 91
119 109: 90(ivec4) ConstantComposite 20 20 20 20
120 110: 90(ivec4) SpecConstantOp 128 91 109
121 111: 90(ivec4) SpecConstantOp 128 91 109
122 112: 90(ivec4) ConstantComposite 60 60 60 60
123 113: 90(ivec4) SpecConstantOp 130 111 112
124 114: 90(ivec4) ConstantComposite 62 62 62 62
125 115: 90(ivec4) SpecConstantOp 130 113 114
126 116: 90(ivec4) SpecConstantOp 132 91 109
127 117: 90(ivec4) ConstantComposite 67 67 67 67
128 118: 90(ivec4) SpecConstantOp 135 116 117
129 119: 90(ivec4) SpecConstantOp 139 91 114
130 120: 90(ivec4) ConstantComposite 76 76 76 76
131 121: 90(ivec4) SpecConstantOp 195 91 120
132 122: 90(ivec4) SpecConstantOp 196 91 109
133 123: 6(int) Constant 1024
134 124: 90(ivec4) ConstantComposite 123 123 123 123
135 125: 90(ivec4) SpecConstantOp 197 91 124
136 126: 41(int) Constant 2048
137 127: 94(ivec4) ConstantComposite 126 126 126 126
138 128: 94(ivec4) SpecConstantOp 198 95 127
139 129: 6(int) SpecConstantOp 81 91 0
140 130: TypeVector 6(int) 2
141 131: 130(ivec2) SpecConstantOp 79 91 91 1(GLSL.std.450) 0
142 132: TypeVector 6(int) 3
143 133: 132(ivec3) SpecConstantOp 79 91 91 2 1(GLSL.std.450) 0
144 134: 90(ivec4) SpecConstantOp 79 91 91 1(GLSL.std.450) 2 0 3
John Kessenich8e6c6ce2017-01-28 19:29:42 -0700145 135(a): 6(int) SpecConstant 4
146 136(b): 6(int) SpecConstant 6
147 137(c): 22(bool) SpecConstantTrue
148 138: 22(bool) SpecConstantOp 173 135(a) 136(b)
149 139: 6(int) SpecConstantOp 169 138 135(a) 136(b)
150 140: TypeArray 6(int) 139
151 141: TypePointer Private 140
152142(ternayArray1): 141(ptr) Variable Private
153 143: 6(int) Constant 13
154 144: 6(int) Constant 17
155 145: 6(int) SpecConstantOp 169 137(c) 143 144
156 146: 6(int) SpecConstantOp 169 137(c) 135(a) 144
157 147: 22(bool) ConstantTrue
158 148: 6(int) SpecConstantOp 169 147 135(a) 144
159 149: 22(bool) SpecConstantOp 173 135(a) 136(b)
160 150: 6(int) SpecConstantOp 128 143 135(a)
161 151: 6(int) SpecConstantOp 132 144 136(b)
162 152: 6(int) SpecConstantOp 169 149 150 151
163 153: 22(bool) SpecConstantOp 168 137(c)
164 154: TypeVector 39(float) 2
165 155: 39(float) Constant 1065353216
166 156: 154(fvec2) ConstantComposite 155 155
167 157: 39(float) Constant 1073741824
168 158: 154(fvec2) ConstantComposite 157 157
John Kesseniche434ad92017-03-30 10:09:28 -0600169 159: TypeVector 22(bool) 2
170 160: 159(bvec2) SpecConstantComposite 153 153
171 161: 154(fvec2) SpecConstantOp 169 160 156 158
qining13545202016-03-21 09:51:37 -0400172 4(main): 2 Function None 3
173 5: Label
174 Return
175 FunctionEnd
qining4c912612016-04-01 10:35:16 -04001768(non_const_array_size_from_spec_const(): 6(int) Function None 7
177 9: Label
qininge24aa5e2016-04-07 15:40:27 -0400178 11(i): 10(ptr) Variable Function
179 27(array): 26(ptr) Variable Function
180 Store 11(i) 12
181 Branch 13
182 13: Label
183 LoopMerge 15 16 None
184 Branch 17
185 17: Label
186 18: 6(int) Load 11(i)
187 23: 22(bool) SLessThan 18 21
188 BranchConditional 23 14 15
189 14: Label
190 28: 6(int) Load 11(i)
191 30: 10(ptr) AccessChain 27(array) 28
192 Store 30 29
193 Branch 16
194 16: Label
195 31: 6(int) Load 11(i)
196 33: 6(int) IAdd 31 32
197 Store 11(i) 33
198 Branch 13
199 15: Label
200 35: 10(ptr) AccessChain 27(array) 34
201 36: 6(int) Load 35
202 ReturnValue 36
qining4c912612016-04-01 10:35:16 -0400203 FunctionEnd