John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1 | // |
John Kessenich | 927608b | 2017-01-06 12:34:14 -0700 | [diff] [blame] | 2 | // Copyright (C) 2014-2015 LunarG, Inc. |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 3 | // |
John Kessenich | 927608b | 2017-01-06 12:34:14 -0700 | [diff] [blame] | 4 | // All rights reserved. |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 5 | // |
John Kessenich | 927608b | 2017-01-06 12:34:14 -0700 | [diff] [blame] | 6 | // Redistribution and use in source and binary forms, with or without |
| 7 | // modification, are permitted provided that the following conditions |
| 8 | // are met: |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 9 | // |
| 10 | // Redistributions of source code must retain the above copyright |
| 11 | // notice, this list of conditions and the following disclaimer. |
| 12 | // |
| 13 | // Redistributions in binary form must reproduce the above |
| 14 | // copyright notice, this list of conditions and the following |
| 15 | // disclaimer in the documentation and/or other materials provided |
| 16 | // with the distribution. |
| 17 | // |
| 18 | // Neither the name of 3Dlabs Inc. Ltd. nor the names of its |
| 19 | // contributors may be used to endorse or promote products derived |
| 20 | // from this software without specific prior written permission. |
| 21 | // |
John Kessenich | 927608b | 2017-01-06 12:34:14 -0700 | [diff] [blame] | 22 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
| 23 | // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
| 24 | // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 25 | // FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
| 26 | // COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
| 27 | // INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
| 28 | // BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; |
| 29 | // LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER |
| 30 | // CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
| 31 | // LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN |
| 32 | // ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 33 | // POSSIBILITY OF SUCH DAMAGE. |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 34 | |
| 35 | // |
John Kessenich | 66ec80e | 2016-08-05 14:04:23 -0600 | [diff] [blame] | 36 | // 1) Programmatically fill in instruction/operand information. |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 37 | // This can be used for disassembly, printing documentation, etc. |
| 38 | // |
| 39 | // 2) Print documentation from this parameterization. |
| 40 | // |
| 41 | |
| 42 | #include "doc.h" |
| 43 | |
John Kessenich | 66ec80e | 2016-08-05 14:04:23 -0600 | [diff] [blame] | 44 | #include <cstdio> |
| 45 | #include <cstring> |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 46 | #include <algorithm> |
| 47 | |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 48 | namespace spv { |
| 49 | extern "C" { |
| 50 | // Include C-based headers that don't have a namespace |
John Kessenich | 6c8aaac | 2017-02-27 01:20:51 -0700 | [diff] [blame] | 51 | #include "GLSL.ext.KHR.h" |
Rex Xu | 5159664 | 2016-09-21 18:56:12 +0800 | [diff] [blame] | 52 | #ifdef AMD_EXTENSIONS |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 53 | #include "GLSL.ext.AMD.h" |
Rex Xu | 5159664 | 2016-09-21 18:56:12 +0800 | [diff] [blame] | 54 | #endif |
chaoc | 0ad6a4e | 2016-12-19 16:29:34 -0800 | [diff] [blame] | 55 | #ifdef NV_EXTENSIONS |
| 56 | #include "GLSL.ext.NV.h" |
| 57 | #endif |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 58 | } |
| 59 | } |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 60 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 61 | namespace spv { |
| 62 | |
| 63 | // |
| 64 | // Whole set of functions that translate enumerants to their text strings for |
| 65 | // the specification (or their sanitized versions for auto-generating the |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 66 | // spirv headers. |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 67 | // |
| 68 | // Also, the ceilings are declared next to these, to help keep them in sync. |
| 69 | // Ceilings should be |
| 70 | // - one more than the maximum value an enumerant takes on, for non-mask enumerants |
John Kessenich | a09eefd | 2017-04-07 15:40:30 -0600 | [diff] [blame] | 71 | // (for non-sparse enums, this is the number of enumerants) |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 72 | // - the number of bits consumed by the set of masks |
John Kessenich | a09eefd | 2017-04-07 15:40:30 -0600 | [diff] [blame] | 73 | // (for non-sparse mask enums, this is the number of enumerants) |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 74 | // |
| 75 | |
John Kessenich | 66e2faf | 2016-03-12 18:34:36 -0700 | [diff] [blame] | 76 | const int SourceLanguageCeiling = 6; // HLSL todo: need official enumerant |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 77 | |
| 78 | const char* SourceString(int source) |
| 79 | { |
| 80 | switch (source) { |
| 81 | case 0: return "Unknown"; |
| 82 | case 1: return "ESSL"; |
| 83 | case 2: return "GLSL"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 84 | case 3: return "OpenCL_C"; |
| 85 | case 4: return "OpenCL_CPP"; |
John Kessenich | 66e2faf | 2016-03-12 18:34:36 -0700 | [diff] [blame] | 86 | case 5: return "HLSL"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 87 | |
| 88 | case SourceLanguageCeiling: |
| 89 | default: return "Bad"; |
| 90 | } |
| 91 | } |
| 92 | |
| 93 | const int ExecutionModelCeiling = 7; |
| 94 | |
| 95 | const char* ExecutionModelString(int model) |
| 96 | { |
| 97 | switch (model) { |
| 98 | case 0: return "Vertex"; |
| 99 | case 1: return "TessellationControl"; |
| 100 | case 2: return "TessellationEvaluation"; |
| 101 | case 3: return "Geometry"; |
| 102 | case 4: return "Fragment"; |
| 103 | case 5: return "GLCompute"; |
| 104 | case 6: return "Kernel"; |
| 105 | |
| 106 | case ExecutionModelCeiling: |
| 107 | default: return "Bad"; |
| 108 | } |
| 109 | } |
| 110 | |
| 111 | const int AddressingModelCeiling = 3; |
| 112 | |
| 113 | const char* AddressingString(int addr) |
| 114 | { |
| 115 | switch (addr) { |
| 116 | case 0: return "Logical"; |
| 117 | case 1: return "Physical32"; |
| 118 | case 2: return "Physical64"; |
| 119 | |
| 120 | case AddressingModelCeiling: |
| 121 | default: return "Bad"; |
| 122 | } |
| 123 | } |
| 124 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 125 | const int MemoryModelCeiling = 3; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 126 | |
| 127 | const char* MemoryString(int mem) |
| 128 | { |
| 129 | switch (mem) { |
| 130 | case 0: return "Simple"; |
| 131 | case 1: return "GLSL450"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 132 | case 2: return "OpenCL"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 133 | |
| 134 | case MemoryModelCeiling: |
| 135 | default: return "Bad"; |
| 136 | } |
| 137 | } |
| 138 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 139 | const int ExecutionModeCeiling = 33; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 140 | |
| 141 | const char* ExecutionModeString(int mode) |
| 142 | { |
| 143 | switch (mode) { |
| 144 | case 0: return "Invocations"; |
| 145 | case 1: return "SpacingEqual"; |
| 146 | case 2: return "SpacingFractionalEven"; |
| 147 | case 3: return "SpacingFractionalOdd"; |
| 148 | case 4: return "VertexOrderCw"; |
| 149 | case 5: return "VertexOrderCcw"; |
| 150 | case 6: return "PixelCenterInteger"; |
| 151 | case 7: return "OriginUpperLeft"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 152 | case 8: return "OriginLowerLeft"; |
| 153 | case 9: return "EarlyFragmentTests"; |
| 154 | case 10: return "PointMode"; |
| 155 | case 11: return "Xfb"; |
| 156 | case 12: return "DepthReplacing"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 157 | case 13: return "Bad"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 158 | case 14: return "DepthGreater"; |
| 159 | case 15: return "DepthLess"; |
| 160 | case 16: return "DepthUnchanged"; |
| 161 | case 17: return "LocalSize"; |
| 162 | case 18: return "LocalSizeHint"; |
| 163 | case 19: return "InputPoints"; |
| 164 | case 20: return "InputLines"; |
| 165 | case 21: return "InputLinesAdjacency"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 166 | case 22: return "Triangles"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 167 | case 23: return "InputTrianglesAdjacency"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 168 | case 24: return "Quads"; |
| 169 | case 25: return "Isolines"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 170 | case 26: return "OutputVertices"; |
| 171 | case 27: return "OutputPoints"; |
| 172 | case 28: return "OutputLineStrip"; |
| 173 | case 29: return "OutputTriangleStrip"; |
| 174 | case 30: return "VecTypeHint"; |
| 175 | case 31: return "ContractionOff"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 176 | case 32: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 177 | |
chaoc | c120452 | 2017-06-30 17:14:30 -0700 | [diff] [blame] | 178 | case 4446: return "PostDepthCoverage"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 179 | case ExecutionModeCeiling: |
| 180 | default: return "Bad"; |
| 181 | } |
| 182 | } |
| 183 | |
John Kessenich | 6702718 | 2017-04-19 18:34:49 -0600 | [diff] [blame] | 184 | const int StorageClassCeiling = 13; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 185 | |
| 186 | const char* StorageClassString(int StorageClass) |
| 187 | { |
| 188 | switch (StorageClass) { |
| 189 | case 0: return "UniformConstant"; |
| 190 | case 1: return "Input"; |
| 191 | case 2: return "Uniform"; |
| 192 | case 3: return "Output"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 193 | case 4: return "Workgroup"; |
| 194 | case 5: return "CrossWorkgroup"; |
| 195 | case 6: return "Private"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 196 | case 7: return "Function"; |
| 197 | case 8: return "Generic"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 198 | case 9: return "PushConstant"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 199 | case 10: return "AtomicCounter"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 200 | case 11: return "Image"; |
John Kessenich | 6702718 | 2017-04-19 18:34:49 -0600 | [diff] [blame] | 201 | case 12: return "StorageBuffer"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 202 | |
| 203 | case StorageClassCeiling: |
| 204 | default: return "Bad"; |
| 205 | } |
| 206 | } |
| 207 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 208 | const int DecorationCeiling = 45; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 209 | |
| 210 | const char* DecorationString(int decoration) |
| 211 | { |
| 212 | switch (decoration) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 213 | case 0: return "RelaxedPrecision"; |
| 214 | case 1: return "SpecId"; |
| 215 | case 2: return "Block"; |
| 216 | case 3: return "BufferBlock"; |
| 217 | case 4: return "RowMajor"; |
| 218 | case 5: return "ColMajor"; |
| 219 | case 6: return "ArrayStride"; |
| 220 | case 7: return "MatrixStride"; |
| 221 | case 8: return "GLSLShared"; |
| 222 | case 9: return "GLSLPacked"; |
| 223 | case 10: return "CPacked"; |
| 224 | case 11: return "BuiltIn"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 225 | case 12: return "Bad"; |
| 226 | case 13: return "NoPerspective"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 227 | case 14: return "Flat"; |
| 228 | case 15: return "Patch"; |
| 229 | case 16: return "Centroid"; |
| 230 | case 17: return "Sample"; |
| 231 | case 18: return "Invariant"; |
| 232 | case 19: return "Restrict"; |
| 233 | case 20: return "Aliased"; |
| 234 | case 21: return "Volatile"; |
| 235 | case 22: return "Constant"; |
| 236 | case 23: return "Coherent"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 237 | case 24: return "NonWritable"; |
| 238 | case 25: return "NonReadable"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 239 | case 26: return "Uniform"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 240 | case 27: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 241 | case 28: return "SaturatedConversion"; |
| 242 | case 29: return "Stream"; |
| 243 | case 30: return "Location"; |
| 244 | case 31: return "Component"; |
| 245 | case 32: return "Index"; |
| 246 | case 33: return "Binding"; |
| 247 | case 34: return "DescriptorSet"; |
| 248 | case 35: return "Offset"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 249 | case 36: return "XfbBuffer"; |
| 250 | case 37: return "XfbStride"; |
| 251 | case 38: return "FuncParamAttr"; |
| 252 | case 39: return "FP Rounding Mode"; |
| 253 | case 40: return "FP Fast Math Mode"; |
| 254 | case 41: return "Linkage Attributes"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 255 | case 42: return "NoContraction"; |
| 256 | case 43: return "InputAttachmentIndex"; |
| 257 | case 44: return "Alignment"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 258 | |
| 259 | case DecorationCeiling: |
| 260 | default: return "Bad"; |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 261 | |
| 262 | #ifdef AMD_EXTENSIONS |
| 263 | case 4999: return "ExplicitInterpAMD"; |
| 264 | #endif |
chaoc | 0ad6a4e | 2016-12-19 16:29:34 -0800 | [diff] [blame] | 265 | #ifdef NV_EXTENSIONS |
| 266 | case 5248: return "OverrideCoverageNV"; |
chaoc | 6e5acae | 2016-12-20 13:28:52 -0800 | [diff] [blame] | 267 | case 5250: return "PassthroughNV"; |
chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 268 | case 5252: return "ViewportRelativeNV"; |
| 269 | case 5256: return "SecondaryViewportRelativeNV"; |
chaoc | 0ad6a4e | 2016-12-19 16:29:34 -0800 | [diff] [blame] | 270 | #endif |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 271 | } |
| 272 | } |
| 273 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 274 | const int BuiltInCeiling = 44; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 275 | |
| 276 | const char* BuiltInString(int builtIn) |
| 277 | { |
| 278 | switch (builtIn) { |
| 279 | case 0: return "Position"; |
| 280 | case 1: return "PointSize"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 281 | case 2: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 282 | case 3: return "ClipDistance"; |
| 283 | case 4: return "CullDistance"; |
| 284 | case 5: return "VertexId"; |
| 285 | case 6: return "InstanceId"; |
| 286 | case 7: return "PrimitiveId"; |
| 287 | case 8: return "InvocationId"; |
| 288 | case 9: return "Layer"; |
| 289 | case 10: return "ViewportIndex"; |
| 290 | case 11: return "TessLevelOuter"; |
| 291 | case 12: return "TessLevelInner"; |
| 292 | case 13: return "TessCoord"; |
| 293 | case 14: return "PatchVertices"; |
| 294 | case 15: return "FragCoord"; |
| 295 | case 16: return "PointCoord"; |
| 296 | case 17: return "FrontFacing"; |
| 297 | case 18: return "SampleId"; |
| 298 | case 19: return "SamplePosition"; |
| 299 | case 20: return "SampleMask"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 300 | case 21: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 301 | case 22: return "FragDepth"; |
| 302 | case 23: return "HelperInvocation"; |
| 303 | case 24: return "NumWorkgroups"; |
| 304 | case 25: return "WorkgroupSize"; |
| 305 | case 26: return "WorkgroupId"; |
| 306 | case 27: return "LocalInvocationId"; |
| 307 | case 28: return "GlobalInvocationId"; |
| 308 | case 29: return "LocalInvocationIndex"; |
| 309 | case 30: return "WorkDim"; |
| 310 | case 31: return "GlobalSize"; |
| 311 | case 32: return "EnqueuedWorkgroupSize"; |
| 312 | case 33: return "GlobalOffset"; |
| 313 | case 34: return "GlobalLinearId"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 314 | case 35: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 315 | case 36: return "SubgroupSize"; |
| 316 | case 37: return "SubgroupMaxSize"; |
| 317 | case 38: return "NumSubgroups"; |
| 318 | case 39: return "NumEnqueuedSubgroups"; |
| 319 | case 40: return "SubgroupId"; |
| 320 | case 41: return "SubgroupLocalInvocationId"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 321 | case 42: return "VertexIndex"; // TBD: put next to VertexId? |
| 322 | case 43: return "InstanceIndex"; // TBD: put next to InstanceId? |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 323 | |
Rex Xu | 5159664 | 2016-09-21 18:56:12 +0800 | [diff] [blame] | 324 | case 4416: return "SubgroupEqMaskKHR"; |
| 325 | case 4417: return "SubgroupGeMaskKHR"; |
| 326 | case 4418: return "SubgroupGtMaskKHR"; |
| 327 | case 4419: return "SubgroupLeMaskKHR"; |
| 328 | case 4420: return "SubgroupLtMaskKHR"; |
John Kessenich | 6c8aaac | 2017-02-27 01:20:51 -0700 | [diff] [blame] | 329 | case 4438: return "DeviceIndex"; |
| 330 | case 4440: return "ViewIndex"; |
Rex Xu | f3b2747 | 2016-07-22 18:15:31 +0800 | [diff] [blame] | 331 | case 4424: return "BaseVertex"; |
| 332 | case 4425: return "BaseInstance"; |
| 333 | case 4426: return "DrawIndex"; |
| 334 | |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 335 | #ifdef AMD_EXTENSIONS |
| 336 | case 4992: return "BaryCoordNoPerspAMD"; |
| 337 | case 4993: return "BaryCoordNoPerspCentroidAMD"; |
| 338 | case 4994: return "BaryCoordNoPerspSampleAMD"; |
| 339 | case 4995: return "BaryCoordSmoothAMD"; |
| 340 | case 4996: return "BaryCoordSmoothCentroidAMD"; |
| 341 | case 4997: return "BaryCoordSmoothSampleAMD"; |
| 342 | case 4998: return "BaryCoordPullModelAMD"; |
| 343 | #endif |
John Kessenich | 6c8aaac | 2017-02-27 01:20:51 -0700 | [diff] [blame] | 344 | |
chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 345 | #ifdef NV_EXTENSIONS |
| 346 | case 5253: return "ViewportMaskNV"; |
| 347 | case 5257: return "SecondaryPositionNV"; |
| 348 | case 5258: return "SecondaryViewportMaskNV"; |
John Kessenich | 42e33c9 | 2017-02-27 01:50:28 -0700 | [diff] [blame] | 349 | case 5261: return "PositionPerViewNV"; |
| 350 | case 5262: return "ViewportMaskPerViewNV"; |
chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 351 | #endif |
John Kessenich | 6c8aaac | 2017-02-27 01:20:51 -0700 | [diff] [blame] | 352 | |
| 353 | case BuiltInCeiling: |
| 354 | default: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 355 | } |
| 356 | } |
| 357 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 358 | const int DimensionCeiling = 7; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 359 | |
| 360 | const char* DimensionString(int dim) |
| 361 | { |
| 362 | switch (dim) { |
| 363 | case 0: return "1D"; |
| 364 | case 1: return "2D"; |
| 365 | case 2: return "3D"; |
| 366 | case 3: return "Cube"; |
| 367 | case 4: return "Rect"; |
| 368 | case 5: return "Buffer"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 369 | case 6: return "SubpassData"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 370 | |
| 371 | case DimensionCeiling: |
| 372 | default: return "Bad"; |
| 373 | } |
| 374 | } |
| 375 | |
| 376 | const int SamplerAddressingModeCeiling = 5; |
| 377 | |
| 378 | const char* SamplerAddressingModeString(int mode) |
| 379 | { |
| 380 | switch (mode) { |
| 381 | case 0: return "None"; |
| 382 | case 1: return "ClampToEdge"; |
| 383 | case 2: return "Clamp"; |
| 384 | case 3: return "Repeat"; |
| 385 | case 4: return "RepeatMirrored"; |
| 386 | |
| 387 | case SamplerAddressingModeCeiling: |
| 388 | default: return "Bad"; |
| 389 | } |
| 390 | } |
| 391 | |
| 392 | const int SamplerFilterModeCeiling = 2; |
| 393 | |
| 394 | const char* SamplerFilterModeString(int mode) |
| 395 | { |
| 396 | switch (mode) { |
| 397 | case 0: return "Nearest"; |
| 398 | case 1: return "Linear"; |
| 399 | |
| 400 | case SamplerFilterModeCeiling: |
| 401 | default: return "Bad"; |
| 402 | } |
| 403 | } |
| 404 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 405 | const int ImageFormatCeiling = 40; |
| 406 | |
| 407 | const char* ImageFormatString(int format) |
| 408 | { |
| 409 | switch (format) { |
| 410 | case 0: return "Unknown"; |
| 411 | |
| 412 | // ES/Desktop float |
| 413 | case 1: return "Rgba32f"; |
| 414 | case 2: return "Rgba16f"; |
| 415 | case 3: return "R32f"; |
| 416 | case 4: return "Rgba8"; |
| 417 | case 5: return "Rgba8Snorm"; |
| 418 | |
| 419 | // Desktop float |
| 420 | case 6: return "Rg32f"; |
| 421 | case 7: return "Rg16f"; |
| 422 | case 8: return "R11fG11fB10f"; |
| 423 | case 9: return "R16f"; |
| 424 | case 10: return "Rgba16"; |
| 425 | case 11: return "Rgb10A2"; |
| 426 | case 12: return "Rg16"; |
| 427 | case 13: return "Rg8"; |
| 428 | case 14: return "R16"; |
| 429 | case 15: return "R8"; |
| 430 | case 16: return "Rgba16Snorm"; |
| 431 | case 17: return "Rg16Snorm"; |
| 432 | case 18: return "Rg8Snorm"; |
| 433 | case 19: return "R16Snorm"; |
| 434 | case 20: return "R8Snorm"; |
| 435 | |
| 436 | // ES/Desktop int |
| 437 | case 21: return "Rgba32i"; |
| 438 | case 22: return "Rgba16i"; |
| 439 | case 23: return "Rgba8i"; |
| 440 | case 24: return "R32i"; |
| 441 | |
| 442 | // Desktop int |
| 443 | case 25: return "Rg32i"; |
| 444 | case 26: return "Rg16i"; |
| 445 | case 27: return "Rg8i"; |
| 446 | case 28: return "R16i"; |
| 447 | case 29: return "R8i"; |
| 448 | |
| 449 | // ES/Desktop uint |
| 450 | case 30: return "Rgba32ui"; |
| 451 | case 31: return "Rgba16ui"; |
| 452 | case 32: return "Rgba8ui"; |
| 453 | case 33: return "R32ui"; |
| 454 | |
| 455 | // Desktop uint |
| 456 | case 34: return "Rgb10a2ui"; |
| 457 | case 35: return "Rg32ui"; |
| 458 | case 36: return "Rg16ui"; |
| 459 | case 37: return "Rg8ui"; |
| 460 | case 38: return "R16ui"; |
| 461 | case 39: return "R8ui"; |
| 462 | |
| 463 | case ImageFormatCeiling: |
| 464 | default: |
| 465 | return "Bad"; |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | const int ImageChannelOrderCeiling = 19; |
| 470 | |
| 471 | const char* ImageChannelOrderString(int format) |
| 472 | { |
| 473 | switch (format) { |
| 474 | case 0: return "R"; |
| 475 | case 1: return "A"; |
| 476 | case 2: return "RG"; |
| 477 | case 3: return "RA"; |
| 478 | case 4: return "RGB"; |
| 479 | case 5: return "RGBA"; |
| 480 | case 6: return "BGRA"; |
| 481 | case 7: return "ARGB"; |
| 482 | case 8: return "Intensity"; |
| 483 | case 9: return "Luminance"; |
| 484 | case 10: return "Rx"; |
| 485 | case 11: return "RGx"; |
| 486 | case 12: return "RGBx"; |
| 487 | case 13: return "Depth"; |
| 488 | case 14: return "DepthStencil"; |
| 489 | case 15: return "sRGB"; |
| 490 | case 16: return "sRGBx"; |
| 491 | case 17: return "sRGBA"; |
| 492 | case 18: return "sBGRA"; |
| 493 | |
| 494 | case ImageChannelOrderCeiling: |
| 495 | default: |
| 496 | return "Bad"; |
| 497 | } |
| 498 | } |
| 499 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 500 | const int ImageChannelDataTypeCeiling = 17; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 501 | |
| 502 | const char* ImageChannelDataTypeString(int type) |
| 503 | { |
| 504 | switch (type) |
| 505 | { |
| 506 | case 0: return "SnormInt8"; |
| 507 | case 1: return "SnormInt16"; |
| 508 | case 2: return "UnormInt8"; |
| 509 | case 3: return "UnormInt16"; |
| 510 | case 4: return "UnormShort565"; |
| 511 | case 5: return "UnormShort555"; |
| 512 | case 6: return "UnormInt101010"; |
| 513 | case 7: return "SignedInt8"; |
| 514 | case 8: return "SignedInt16"; |
| 515 | case 9: return "SignedInt32"; |
| 516 | case 10: return "UnsignedInt8"; |
| 517 | case 11: return "UnsignedInt16"; |
| 518 | case 12: return "UnsignedInt32"; |
| 519 | case 13: return "HalfFloat"; |
| 520 | case 14: return "Float"; |
| 521 | case 15: return "UnormInt24"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 522 | case 16: return "UnormInt101010_2"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 523 | |
| 524 | case ImageChannelDataTypeCeiling: |
| 525 | default: |
| 526 | return "Bad"; |
| 527 | } |
| 528 | } |
| 529 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 530 | const int ImageOperandsCeiling = 8; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 531 | |
| 532 | const char* ImageOperandsString(int format) |
| 533 | { |
| 534 | switch (format) { |
| 535 | case 0: return "Bias"; |
| 536 | case 1: return "Lod"; |
| 537 | case 2: return "Grad"; |
| 538 | case 3: return "ConstOffset"; |
| 539 | case 4: return "Offset"; |
| 540 | case 5: return "ConstOffsets"; |
| 541 | case 6: return "Sample"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 542 | case 7: return "MinLod"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 543 | |
| 544 | case ImageOperandsCeiling: |
| 545 | default: |
| 546 | return "Bad"; |
| 547 | } |
| 548 | } |
| 549 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 550 | const int FPFastMathCeiling = 5; |
| 551 | |
| 552 | const char* FPFastMathString(int mode) |
| 553 | { |
| 554 | switch (mode) { |
| 555 | case 0: return "NotNaN"; |
| 556 | case 1: return "NotInf"; |
| 557 | case 2: return "NSZ"; |
| 558 | case 3: return "AllowRecip"; |
| 559 | case 4: return "Fast"; |
| 560 | |
| 561 | case FPFastMathCeiling: |
| 562 | default: return "Bad"; |
| 563 | } |
| 564 | } |
| 565 | |
| 566 | const int FPRoundingModeCeiling = 4; |
| 567 | |
| 568 | const char* FPRoundingModeString(int mode) |
| 569 | { |
| 570 | switch (mode) { |
| 571 | case 0: return "RTE"; |
| 572 | case 1: return "RTZ"; |
| 573 | case 2: return "RTP"; |
| 574 | case 3: return "RTN"; |
| 575 | |
| 576 | case FPRoundingModeCeiling: |
| 577 | default: return "Bad"; |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | const int LinkageTypeCeiling = 2; |
| 582 | |
| 583 | const char* LinkageTypeString(int type) |
| 584 | { |
| 585 | switch (type) { |
| 586 | case 0: return "Export"; |
| 587 | case 1: return "Import"; |
| 588 | |
| 589 | case LinkageTypeCeiling: |
| 590 | default: return "Bad"; |
| 591 | } |
| 592 | } |
| 593 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 594 | const int FuncParamAttrCeiling = 8; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 595 | |
| 596 | const char* FuncParamAttrString(int attr) |
| 597 | { |
| 598 | switch (attr) { |
| 599 | case 0: return "Zext"; |
| 600 | case 1: return "Sext"; |
| 601 | case 2: return "ByVal"; |
| 602 | case 3: return "Sret"; |
| 603 | case 4: return "NoAlias"; |
| 604 | case 5: return "NoCapture"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 605 | case 6: return "NoWrite"; |
| 606 | case 7: return "NoReadWrite"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 607 | |
| 608 | case FuncParamAttrCeiling: |
| 609 | default: return "Bad"; |
| 610 | } |
| 611 | } |
| 612 | |
| 613 | const int AccessQualifierCeiling = 3; |
| 614 | |
| 615 | const char* AccessQualifierString(int attr) |
| 616 | { |
| 617 | switch (attr) { |
| 618 | case 0: return "ReadOnly"; |
| 619 | case 1: return "WriteOnly"; |
| 620 | case 2: return "ReadWrite"; |
| 621 | |
| 622 | case AccessQualifierCeiling: |
| 623 | default: return "Bad"; |
| 624 | } |
| 625 | } |
| 626 | |
| 627 | const int SelectControlCeiling = 2; |
| 628 | |
| 629 | const char* SelectControlString(int cont) |
| 630 | { |
| 631 | switch (cont) { |
| 632 | case 0: return "Flatten"; |
| 633 | case 1: return "DontFlatten"; |
| 634 | |
| 635 | case SelectControlCeiling: |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 636 | default: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 637 | } |
| 638 | } |
| 639 | |
Rex Xu | 57e6592 | 2017-07-04 23:23:40 +0800 | [diff] [blame^] | 640 | const int LoopControlCeiling = 4; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 641 | |
| 642 | const char* LoopControlString(int cont) |
| 643 | { |
| 644 | switch (cont) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 645 | case 0: return "Unroll"; |
| 646 | case 1: return "DontUnroll"; |
Rex Xu | 57e6592 | 2017-07-04 23:23:40 +0800 | [diff] [blame^] | 647 | case 2: return "DependencyInfinite"; |
| 648 | case 3: return "DependencyLength"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 649 | |
| 650 | case LoopControlCeiling: |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 651 | default: return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 652 | } |
| 653 | } |
| 654 | |
| 655 | const int FunctionControlCeiling = 4; |
| 656 | |
| 657 | const char* FunctionControlString(int cont) |
| 658 | { |
| 659 | switch (cont) { |
| 660 | case 0: return "Inline"; |
| 661 | case 1: return "DontInline"; |
| 662 | case 2: return "Pure"; |
| 663 | case 3: return "Const"; |
| 664 | |
| 665 | case FunctionControlCeiling: |
| 666 | default: return "Bad"; |
| 667 | } |
| 668 | } |
| 669 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 670 | const int MemorySemanticsCeiling = 12; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 671 | |
| 672 | const char* MemorySemanticsString(int mem) |
| 673 | { |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 674 | // Note: No bits set (None) means "Relaxed" |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 675 | switch (mem) { |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 676 | case 0: return "Bad"; // Note: this is a placeholder for 'Consume' |
| 677 | case 1: return "Acquire"; |
| 678 | case 2: return "Release"; |
| 679 | case 3: return "AcquireRelease"; |
| 680 | case 4: return "SequentiallyConsistent"; |
| 681 | case 5: return "Bad"; // Note: reserved for future expansion |
| 682 | case 6: return "UniformMemory"; |
| 683 | case 7: return "SubgroupMemory"; |
| 684 | case 8: return "WorkgroupMemory"; |
| 685 | case 9: return "CrossWorkgroupMemory"; |
| 686 | case 10: return "AtomicCounterMemory"; |
| 687 | case 11: return "ImageMemory"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 688 | |
| 689 | case MemorySemanticsCeiling: |
| 690 | default: return "Bad"; |
| 691 | } |
| 692 | } |
| 693 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 694 | const int MemoryAccessCeiling = 3; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 695 | |
| 696 | const char* MemoryAccessString(int mem) |
| 697 | { |
| 698 | switch (mem) { |
| 699 | case 0: return "Volatile"; |
| 700 | case 1: return "Aligned"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 701 | case 2: return "Nontemporal"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 702 | |
| 703 | case MemoryAccessCeiling: |
| 704 | default: return "Bad"; |
| 705 | } |
| 706 | } |
| 707 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 708 | const int ScopeCeiling = 5; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 709 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 710 | const char* ScopeString(int mem) |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 711 | { |
| 712 | switch (mem) { |
| 713 | case 0: return "CrossDevice"; |
| 714 | case 1: return "Device"; |
| 715 | case 2: return "Workgroup"; |
| 716 | case 3: return "Subgroup"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 717 | case 4: return "Invocation"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 718 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 719 | case ScopeCeiling: |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 720 | default: return "Bad"; |
| 721 | } |
| 722 | } |
| 723 | |
| 724 | const int GroupOperationCeiling = 3; |
| 725 | |
| 726 | const char* GroupOperationString(int gop) |
| 727 | { |
| 728 | |
| 729 | switch (gop) |
| 730 | { |
| 731 | case 0: return "Reduce"; |
| 732 | case 1: return "InclusiveScan"; |
| 733 | case 2: return "ExclusiveScan"; |
| 734 | |
| 735 | case GroupOperationCeiling: |
| 736 | default: return "Bad"; |
| 737 | } |
| 738 | } |
| 739 | |
| 740 | const int KernelEnqueueFlagsCeiling = 3; |
| 741 | |
| 742 | const char* KernelEnqueueFlagsString(int flag) |
| 743 | { |
| 744 | switch (flag) |
| 745 | { |
| 746 | case 0: return "NoWait"; |
| 747 | case 1: return "WaitKernel"; |
| 748 | case 2: return "WaitWorkGroup"; |
| 749 | |
| 750 | case KernelEnqueueFlagsCeiling: |
| 751 | default: return "Bad"; |
| 752 | } |
| 753 | } |
| 754 | |
| 755 | const int KernelProfilingInfoCeiling = 1; |
| 756 | |
| 757 | const char* KernelProfilingInfoString(int info) |
| 758 | { |
| 759 | switch (info) |
| 760 | { |
| 761 | case 0: return "CmdExecTime"; |
| 762 | |
| 763 | case KernelProfilingInfoCeiling: |
| 764 | default: return "Bad"; |
| 765 | } |
| 766 | } |
| 767 | |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 768 | const int CapabilityCeiling = 58; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 769 | |
| 770 | const char* CapabilityString(int info) |
| 771 | { |
| 772 | switch (info) |
| 773 | { |
| 774 | case 0: return "Matrix"; |
| 775 | case 1: return "Shader"; |
| 776 | case 2: return "Geometry"; |
| 777 | case 3: return "Tessellation"; |
| 778 | case 4: return "Addresses"; |
| 779 | case 5: return "Linkage"; |
| 780 | case 6: return "Kernel"; |
| 781 | case 7: return "Vector16"; |
| 782 | case 8: return "Float16Buffer"; |
| 783 | case 9: return "Float16"; |
| 784 | case 10: return "Float64"; |
| 785 | case 11: return "Int64"; |
| 786 | case 12: return "Int64Atomics"; |
| 787 | case 13: return "ImageBasic"; |
| 788 | case 14: return "ImageReadWrite"; |
| 789 | case 15: return "ImageMipmap"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 790 | case 16: return "Bad"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 791 | case 17: return "Pipes"; |
| 792 | case 18: return "Groups"; |
| 793 | case 19: return "DeviceEnqueue"; |
| 794 | case 20: return "LiteralSampler"; |
| 795 | case 21: return "AtomicStorage"; |
| 796 | case 22: return "Int16"; |
| 797 | case 23: return "TessellationPointSize"; |
| 798 | case 24: return "GeometryPointSize"; |
| 799 | case 25: return "ImageGatherExtended"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 800 | case 26: return "Bad"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 801 | case 27: return "StorageImageMultisample"; |
| 802 | case 28: return "UniformBufferArrayDynamicIndexing"; |
| 803 | case 29: return "SampledImageArrayDynamicIndexing"; |
| 804 | case 30: return "StorageBufferArrayDynamicIndexing"; |
| 805 | case 31: return "StorageImageArrayDynamicIndexing"; |
| 806 | case 32: return "ClipDistance"; |
| 807 | case 33: return "CullDistance"; |
| 808 | case 34: return "ImageCubeArray"; |
| 809 | case 35: return "SampleRateShading"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 810 | case 36: return "ImageRect"; |
| 811 | case 37: return "SampledRect"; |
| 812 | case 38: return "GenericPointer"; |
| 813 | case 39: return "Int8"; |
| 814 | case 40: return "InputAttachment"; |
| 815 | case 41: return "SparseResidency"; |
| 816 | case 42: return "MinLod"; |
| 817 | case 43: return "Sampled1D"; |
| 818 | case 44: return "Image1D"; |
| 819 | case 45: return "SampledCubeArray"; |
| 820 | case 46: return "SampledBuffer"; |
| 821 | case 47: return "ImageBuffer"; |
| 822 | case 48: return "ImageMSArray"; |
| 823 | case 49: return "StorageImageExtendedFormats"; |
| 824 | case 50: return "ImageQuery"; |
| 825 | case 51: return "DerivativeControl"; |
| 826 | case 52: return "InterpolationFunction"; |
| 827 | case 53: return "TransformFeedback"; |
| 828 | case 54: return "GeometryStreams"; |
| 829 | case 55: return "StorageImageReadWithoutFormat"; |
| 830 | case 56: return "StorageImageWriteWithoutFormat"; |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 831 | case 57: return "MultiViewport"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 832 | |
Rex Xu | 5159664 | 2016-09-21 18:56:12 +0800 | [diff] [blame] | 833 | case 4423: return "SubgroupBallotKHR"; |
Rex Xu | f3b2747 | 2016-07-22 18:15:31 +0800 | [diff] [blame] | 834 | case 4427: return "DrawParameters"; |
Ashwin Kolhe | c720f3e | 2017-01-18 14:16:49 -0800 | [diff] [blame] | 835 | case 4431: return "SubgroupVoteKHR"; |
chaoc | 6e5acae | 2016-12-20 13:28:52 -0800 | [diff] [blame] | 836 | |
Rex Xu | f89ad98 | 2017-04-07 23:22:33 +0800 | [diff] [blame] | 837 | case 4433: return "StorageUniformBufferBlock16"; |
| 838 | case 4434: return "StorageUniform16"; |
| 839 | case 4435: return "StoragePushConstant16"; |
| 840 | case 4436: return "StorageInputOutput16"; |
| 841 | |
John Kessenich | d114184 | 2017-04-13 17:08:11 -0600 | [diff] [blame] | 842 | case 4437: return "DeviceGroup"; |
| 843 | case 4439: return "MultiView"; |
| 844 | |
Rex Xu | 225e0fc | 2016-11-17 17:47:59 +0800 | [diff] [blame] | 845 | #ifdef AMD_EXTENSIONS |
| 846 | case 5009: return "ImageGatherBiasLodAMD"; |
| 847 | #endif |
| 848 | |
chaoc | c120452 | 2017-06-30 17:14:30 -0700 | [diff] [blame] | 849 | case 4447: return "SampleMaskPostDepthCoverage"; |
chaoc | 6e5acae | 2016-12-20 13:28:52 -0800 | [diff] [blame] | 850 | #ifdef NV_EXTENSIONS |
| 851 | case 5251: return "GeometryShaderPassthroughNV"; |
chaoc | 771d89f | 2017-01-13 01:10:53 -0800 | [diff] [blame] | 852 | case 5254: return "ShaderViewportIndexLayerNV"; |
| 853 | case 5255: return "ShaderViewportMaskNV"; |
| 854 | case 5259: return "ShaderStereoViewNV"; |
John Kessenich | 42e33c9 | 2017-02-27 01:50:28 -0700 | [diff] [blame] | 855 | case 5260: return "PerViewAttributesNV"; |
chaoc | 6e5acae | 2016-12-20 13:28:52 -0800 | [diff] [blame] | 856 | #endif |
| 857 | |
John Kessenich | 6c8aaac | 2017-02-27 01:20:51 -0700 | [diff] [blame] | 858 | case CapabilityCeiling: |
| 859 | default: return "Bad"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 860 | } |
| 861 | } |
| 862 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 863 | const char* OpcodeString(int op) |
| 864 | { |
| 865 | switch (op) { |
| 866 | case 0: return "OpNop"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 867 | case 1: return "OpUndef"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 868 | case 2: return "OpSourceContinued"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 869 | case 3: return "OpSource"; |
| 870 | case 4: return "OpSourceExtension"; |
| 871 | case 5: return "OpName"; |
| 872 | case 6: return "OpMemberName"; |
| 873 | case 7: return "OpString"; |
| 874 | case 8: return "OpLine"; |
| 875 | case 9: return "Bad"; |
| 876 | case 10: return "OpExtension"; |
| 877 | case 11: return "OpExtInstImport"; |
| 878 | case 12: return "OpExtInst"; |
| 879 | case 13: return "Bad"; |
| 880 | case 14: return "OpMemoryModel"; |
| 881 | case 15: return "OpEntryPoint"; |
| 882 | case 16: return "OpExecutionMode"; |
| 883 | case 17: return "OpCapability"; |
| 884 | case 18: return "Bad"; |
| 885 | case 19: return "OpTypeVoid"; |
| 886 | case 20: return "OpTypeBool"; |
| 887 | case 21: return "OpTypeInt"; |
| 888 | case 22: return "OpTypeFloat"; |
| 889 | case 23: return "OpTypeVector"; |
| 890 | case 24: return "OpTypeMatrix"; |
| 891 | case 25: return "OpTypeImage"; |
| 892 | case 26: return "OpTypeSampler"; |
| 893 | case 27: return "OpTypeSampledImage"; |
| 894 | case 28: return "OpTypeArray"; |
| 895 | case 29: return "OpTypeRuntimeArray"; |
| 896 | case 30: return "OpTypeStruct"; |
| 897 | case 31: return "OpTypeOpaque"; |
| 898 | case 32: return "OpTypePointer"; |
| 899 | case 33: return "OpTypeFunction"; |
| 900 | case 34: return "OpTypeEvent"; |
| 901 | case 35: return "OpTypeDeviceEvent"; |
| 902 | case 36: return "OpTypeReserveId"; |
| 903 | case 37: return "OpTypeQueue"; |
| 904 | case 38: return "OpTypePipe"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 905 | case 39: return "OpTypeForwardPointer"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 906 | case 40: return "Bad"; |
| 907 | case 41: return "OpConstantTrue"; |
| 908 | case 42: return "OpConstantFalse"; |
| 909 | case 43: return "OpConstant"; |
| 910 | case 44: return "OpConstantComposite"; |
| 911 | case 45: return "OpConstantSampler"; |
| 912 | case 46: return "OpConstantNull"; |
| 913 | case 47: return "Bad"; |
| 914 | case 48: return "OpSpecConstantTrue"; |
| 915 | case 49: return "OpSpecConstantFalse"; |
| 916 | case 50: return "OpSpecConstant"; |
| 917 | case 51: return "OpSpecConstantComposite"; |
| 918 | case 52: return "OpSpecConstantOp"; |
| 919 | case 53: return "Bad"; |
| 920 | case 54: return "OpFunction"; |
| 921 | case 55: return "OpFunctionParameter"; |
| 922 | case 56: return "OpFunctionEnd"; |
| 923 | case 57: return "OpFunctionCall"; |
| 924 | case 58: return "Bad"; |
| 925 | case 59: return "OpVariable"; |
| 926 | case 60: return "OpImageTexelPointer"; |
| 927 | case 61: return "OpLoad"; |
| 928 | case 62: return "OpStore"; |
| 929 | case 63: return "OpCopyMemory"; |
| 930 | case 64: return "OpCopyMemorySized"; |
| 931 | case 65: return "OpAccessChain"; |
| 932 | case 66: return "OpInBoundsAccessChain"; |
| 933 | case 67: return "OpPtrAccessChain"; |
| 934 | case 68: return "OpArrayLength"; |
| 935 | case 69: return "OpGenericPtrMemSemantics"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 936 | case 70: return "OpInBoundsPtrAccessChain"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 937 | case 71: return "OpDecorate"; |
| 938 | case 72: return "OpMemberDecorate"; |
| 939 | case 73: return "OpDecorationGroup"; |
| 940 | case 74: return "OpGroupDecorate"; |
| 941 | case 75: return "OpGroupMemberDecorate"; |
| 942 | case 76: return "Bad"; |
| 943 | case 77: return "OpVectorExtractDynamic"; |
| 944 | case 78: return "OpVectorInsertDynamic"; |
| 945 | case 79: return "OpVectorShuffle"; |
| 946 | case 80: return "OpCompositeConstruct"; |
| 947 | case 81: return "OpCompositeExtract"; |
| 948 | case 82: return "OpCompositeInsert"; |
| 949 | case 83: return "OpCopyObject"; |
| 950 | case 84: return "OpTranspose"; |
| 951 | case 85: return "Bad"; |
| 952 | case 86: return "OpSampledImage"; |
| 953 | case 87: return "OpImageSampleImplicitLod"; |
| 954 | case 88: return "OpImageSampleExplicitLod"; |
| 955 | case 89: return "OpImageSampleDrefImplicitLod"; |
| 956 | case 90: return "OpImageSampleDrefExplicitLod"; |
| 957 | case 91: return "OpImageSampleProjImplicitLod"; |
| 958 | case 92: return "OpImageSampleProjExplicitLod"; |
| 959 | case 93: return "OpImageSampleProjDrefImplicitLod"; |
| 960 | case 94: return "OpImageSampleProjDrefExplicitLod"; |
| 961 | case 95: return "OpImageFetch"; |
| 962 | case 96: return "OpImageGather"; |
| 963 | case 97: return "OpImageDrefGather"; |
| 964 | case 98: return "OpImageRead"; |
| 965 | case 99: return "OpImageWrite"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 966 | case 100: return "OpImage"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 967 | case 101: return "OpImageQueryFormat"; |
| 968 | case 102: return "OpImageQueryOrder"; |
| 969 | case 103: return "OpImageQuerySizeLod"; |
| 970 | case 104: return "OpImageQuerySize"; |
| 971 | case 105: return "OpImageQueryLod"; |
| 972 | case 106: return "OpImageQueryLevels"; |
| 973 | case 107: return "OpImageQuerySamples"; |
| 974 | case 108: return "Bad"; |
| 975 | case 109: return "OpConvertFToU"; |
| 976 | case 110: return "OpConvertFToS"; |
| 977 | case 111: return "OpConvertSToF"; |
| 978 | case 112: return "OpConvertUToF"; |
| 979 | case 113: return "OpUConvert"; |
| 980 | case 114: return "OpSConvert"; |
| 981 | case 115: return "OpFConvert"; |
| 982 | case 116: return "OpQuantizeToF16"; |
| 983 | case 117: return "OpConvertPtrToU"; |
| 984 | case 118: return "OpSatConvertSToU"; |
| 985 | case 119: return "OpSatConvertUToS"; |
| 986 | case 120: return "OpConvertUToPtr"; |
| 987 | case 121: return "OpPtrCastToGeneric"; |
| 988 | case 122: return "OpGenericCastToPtr"; |
| 989 | case 123: return "OpGenericCastToPtrExplicit"; |
| 990 | case 124: return "OpBitcast"; |
| 991 | case 125: return "Bad"; |
| 992 | case 126: return "OpSNegate"; |
| 993 | case 127: return "OpFNegate"; |
| 994 | case 128: return "OpIAdd"; |
| 995 | case 129: return "OpFAdd"; |
| 996 | case 130: return "OpISub"; |
| 997 | case 131: return "OpFSub"; |
| 998 | case 132: return "OpIMul"; |
| 999 | case 133: return "OpFMul"; |
| 1000 | case 134: return "OpUDiv"; |
| 1001 | case 135: return "OpSDiv"; |
| 1002 | case 136: return "OpFDiv"; |
| 1003 | case 137: return "OpUMod"; |
| 1004 | case 138: return "OpSRem"; |
| 1005 | case 139: return "OpSMod"; |
| 1006 | case 140: return "OpFRem"; |
| 1007 | case 141: return "OpFMod"; |
| 1008 | case 142: return "OpVectorTimesScalar"; |
| 1009 | case 143: return "OpMatrixTimesScalar"; |
| 1010 | case 144: return "OpVectorTimesMatrix"; |
| 1011 | case 145: return "OpMatrixTimesVector"; |
| 1012 | case 146: return "OpMatrixTimesMatrix"; |
| 1013 | case 147: return "OpOuterProduct"; |
| 1014 | case 148: return "OpDot"; |
| 1015 | case 149: return "OpIAddCarry"; |
| 1016 | case 150: return "OpISubBorrow"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1017 | case 151: return "OpUMulExtended"; |
| 1018 | case 152: return "OpSMulExtended"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1019 | case 153: return "Bad"; |
| 1020 | case 154: return "OpAny"; |
| 1021 | case 155: return "OpAll"; |
| 1022 | case 156: return "OpIsNan"; |
| 1023 | case 157: return "OpIsInf"; |
| 1024 | case 158: return "OpIsFinite"; |
| 1025 | case 159: return "OpIsNormal"; |
| 1026 | case 160: return "OpSignBitSet"; |
| 1027 | case 161: return "OpLessOrGreater"; |
| 1028 | case 162: return "OpOrdered"; |
| 1029 | case 163: return "OpUnordered"; |
| 1030 | case 164: return "OpLogicalEqual"; |
| 1031 | case 165: return "OpLogicalNotEqual"; |
| 1032 | case 166: return "OpLogicalOr"; |
| 1033 | case 167: return "OpLogicalAnd"; |
| 1034 | case 168: return "OpLogicalNot"; |
| 1035 | case 169: return "OpSelect"; |
| 1036 | case 170: return "OpIEqual"; |
| 1037 | case 171: return "OpINotEqual"; |
| 1038 | case 172: return "OpUGreaterThan"; |
| 1039 | case 173: return "OpSGreaterThan"; |
| 1040 | case 174: return "OpUGreaterThanEqual"; |
| 1041 | case 175: return "OpSGreaterThanEqual"; |
| 1042 | case 176: return "OpULessThan"; |
| 1043 | case 177: return "OpSLessThan"; |
| 1044 | case 178: return "OpULessThanEqual"; |
| 1045 | case 179: return "OpSLessThanEqual"; |
| 1046 | case 180: return "OpFOrdEqual"; |
| 1047 | case 181: return "OpFUnordEqual"; |
| 1048 | case 182: return "OpFOrdNotEqual"; |
| 1049 | case 183: return "OpFUnordNotEqual"; |
| 1050 | case 184: return "OpFOrdLessThan"; |
| 1051 | case 185: return "OpFUnordLessThan"; |
| 1052 | case 186: return "OpFOrdGreaterThan"; |
| 1053 | case 187: return "OpFUnordGreaterThan"; |
| 1054 | case 188: return "OpFOrdLessThanEqual"; |
| 1055 | case 189: return "OpFUnordLessThanEqual"; |
| 1056 | case 190: return "OpFOrdGreaterThanEqual"; |
| 1057 | case 191: return "OpFUnordGreaterThanEqual"; |
| 1058 | case 192: return "Bad"; |
| 1059 | case 193: return "Bad"; |
| 1060 | case 194: return "OpShiftRightLogical"; |
| 1061 | case 195: return "OpShiftRightArithmetic"; |
| 1062 | case 196: return "OpShiftLeftLogical"; |
| 1063 | case 197: return "OpBitwiseOr"; |
| 1064 | case 198: return "OpBitwiseXor"; |
| 1065 | case 199: return "OpBitwiseAnd"; |
| 1066 | case 200: return "OpNot"; |
| 1067 | case 201: return "OpBitFieldInsert"; |
| 1068 | case 202: return "OpBitFieldSExtract"; |
| 1069 | case 203: return "OpBitFieldUExtract"; |
| 1070 | case 204: return "OpBitReverse"; |
| 1071 | case 205: return "OpBitCount"; |
| 1072 | case 206: return "Bad"; |
| 1073 | case 207: return "OpDPdx"; |
| 1074 | case 208: return "OpDPdy"; |
| 1075 | case 209: return "OpFwidth"; |
| 1076 | case 210: return "OpDPdxFine"; |
| 1077 | case 211: return "OpDPdyFine"; |
| 1078 | case 212: return "OpFwidthFine"; |
| 1079 | case 213: return "OpDPdxCoarse"; |
| 1080 | case 214: return "OpDPdyCoarse"; |
| 1081 | case 215: return "OpFwidthCoarse"; |
| 1082 | case 216: return "Bad"; |
| 1083 | case 217: return "Bad"; |
| 1084 | case 218: return "OpEmitVertex"; |
| 1085 | case 219: return "OpEndPrimitive"; |
| 1086 | case 220: return "OpEmitStreamVertex"; |
| 1087 | case 221: return "OpEndStreamPrimitive"; |
| 1088 | case 222: return "Bad"; |
| 1089 | case 223: return "Bad"; |
| 1090 | case 224: return "OpControlBarrier"; |
| 1091 | case 225: return "OpMemoryBarrier"; |
| 1092 | case 226: return "Bad"; |
| 1093 | case 227: return "OpAtomicLoad"; |
| 1094 | case 228: return "OpAtomicStore"; |
| 1095 | case 229: return "OpAtomicExchange"; |
| 1096 | case 230: return "OpAtomicCompareExchange"; |
| 1097 | case 231: return "OpAtomicCompareExchangeWeak"; |
| 1098 | case 232: return "OpAtomicIIncrement"; |
| 1099 | case 233: return "OpAtomicIDecrement"; |
| 1100 | case 234: return "OpAtomicIAdd"; |
| 1101 | case 235: return "OpAtomicISub"; |
| 1102 | case 236: return "OpAtomicSMin"; |
| 1103 | case 237: return "OpAtomicUMin"; |
| 1104 | case 238: return "OpAtomicSMax"; |
| 1105 | case 239: return "OpAtomicUMax"; |
| 1106 | case 240: return "OpAtomicAnd"; |
| 1107 | case 241: return "OpAtomicOr"; |
| 1108 | case 242: return "OpAtomicXor"; |
| 1109 | case 243: return "Bad"; |
| 1110 | case 244: return "Bad"; |
| 1111 | case 245: return "OpPhi"; |
| 1112 | case 246: return "OpLoopMerge"; |
| 1113 | case 247: return "OpSelectionMerge"; |
| 1114 | case 248: return "OpLabel"; |
| 1115 | case 249: return "OpBranch"; |
| 1116 | case 250: return "OpBranchConditional"; |
| 1117 | case 251: return "OpSwitch"; |
| 1118 | case 252: return "OpKill"; |
| 1119 | case 253: return "OpReturn"; |
| 1120 | case 254: return "OpReturnValue"; |
| 1121 | case 255: return "OpUnreachable"; |
| 1122 | case 256: return "OpLifetimeStart"; |
| 1123 | case 257: return "OpLifetimeStop"; |
| 1124 | case 258: return "Bad"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1125 | case 259: return "OpGroupAsyncCopy"; |
| 1126 | case 260: return "OpGroupWaitEvents"; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1127 | case 261: return "OpGroupAll"; |
| 1128 | case 262: return "OpGroupAny"; |
| 1129 | case 263: return "OpGroupBroadcast"; |
| 1130 | case 264: return "OpGroupIAdd"; |
| 1131 | case 265: return "OpGroupFAdd"; |
| 1132 | case 266: return "OpGroupFMin"; |
| 1133 | case 267: return "OpGroupUMin"; |
| 1134 | case 268: return "OpGroupSMin"; |
| 1135 | case 269: return "OpGroupFMax"; |
| 1136 | case 270: return "OpGroupUMax"; |
| 1137 | case 271: return "OpGroupSMax"; |
| 1138 | case 272: return "Bad"; |
| 1139 | case 273: return "Bad"; |
| 1140 | case 274: return "OpReadPipe"; |
| 1141 | case 275: return "OpWritePipe"; |
| 1142 | case 276: return "OpReservedReadPipe"; |
| 1143 | case 277: return "OpReservedWritePipe"; |
| 1144 | case 278: return "OpReserveReadPipePackets"; |
| 1145 | case 279: return "OpReserveWritePipePackets"; |
| 1146 | case 280: return "OpCommitReadPipe"; |
| 1147 | case 281: return "OpCommitWritePipe"; |
| 1148 | case 282: return "OpIsValidReserveId"; |
| 1149 | case 283: return "OpGetNumPipePackets"; |
| 1150 | case 284: return "OpGetMaxPipePackets"; |
| 1151 | case 285: return "OpGroupReserveReadPipePackets"; |
| 1152 | case 286: return "OpGroupReserveWritePipePackets"; |
| 1153 | case 287: return "OpGroupCommitReadPipe"; |
| 1154 | case 288: return "OpGroupCommitWritePipe"; |
| 1155 | case 289: return "Bad"; |
| 1156 | case 290: return "Bad"; |
| 1157 | case 291: return "OpEnqueueMarker"; |
| 1158 | case 292: return "OpEnqueueKernel"; |
| 1159 | case 293: return "OpGetKernelNDrangeSubGroupCount"; |
| 1160 | case 294: return "OpGetKernelNDrangeMaxSubGroupSize"; |
| 1161 | case 295: return "OpGetKernelWorkGroupSize"; |
| 1162 | case 296: return "OpGetKernelPreferredWorkGroupSizeMultiple"; |
| 1163 | case 297: return "OpRetainEvent"; |
| 1164 | case 298: return "OpReleaseEvent"; |
| 1165 | case 299: return "OpCreateUserEvent"; |
| 1166 | case 300: return "OpIsValidEvent"; |
| 1167 | case 301: return "OpSetUserEventStatus"; |
| 1168 | case 302: return "OpCaptureEventProfilingInfo"; |
| 1169 | case 303: return "OpGetDefaultQueue"; |
| 1170 | case 304: return "OpBuildNDRange"; |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1171 | case 305: return "OpImageSparseSampleImplicitLod"; |
| 1172 | case 306: return "OpImageSparseSampleExplicitLod"; |
| 1173 | case 307: return "OpImageSparseSampleDrefImplicitLod"; |
| 1174 | case 308: return "OpImageSparseSampleDrefExplicitLod"; |
| 1175 | case 309: return "OpImageSparseSampleProjImplicitLod"; |
| 1176 | case 310: return "OpImageSparseSampleProjExplicitLod"; |
| 1177 | case 311: return "OpImageSparseSampleProjDrefImplicitLod"; |
| 1178 | case 312: return "OpImageSparseSampleProjDrefExplicitLod"; |
| 1179 | case 313: return "OpImageSparseFetch"; |
| 1180 | case 314: return "OpImageSparseGather"; |
| 1181 | case 315: return "OpImageSparseDrefGather"; |
| 1182 | case 316: return "OpImageSparseTexelsResident"; |
| 1183 | case 317: return "OpNoLine"; |
| 1184 | case 318: return "OpAtomicFlagTestAndSet"; |
| 1185 | case 319: return "OpAtomicFlagClear"; |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1186 | case 320: return "OpImageSparseRead"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1187 | |
Rex Xu | 5159664 | 2016-09-21 18:56:12 +0800 | [diff] [blame] | 1188 | case 4421: return "OpSubgroupBallotKHR"; |
| 1189 | case 4422: return "OpSubgroupFirstInvocationKHR"; |
Maciej Jesionowski | 5227b6d | 2017-02-17 13:45:08 +0100 | [diff] [blame] | 1190 | case 4428: return "OpSubgroupAllKHR"; |
| 1191 | case 4429: return "OpSubgroupAnyKHR"; |
Ashwin Kolhe | c720f3e | 2017-01-18 14:16:49 -0800 | [diff] [blame] | 1192 | case 4430: return "OpSubgroupAllEqualKHR"; |
chaoc | f200da8 | 2016-12-20 12:44:35 -0800 | [diff] [blame] | 1193 | case 4432: return "OpSubgroupReadInvocationKHR"; |
Rex Xu | 5159664 | 2016-09-21 18:56:12 +0800 | [diff] [blame] | 1194 | |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 1195 | #ifdef AMD_EXTENSIONS |
| 1196 | case 5000: return "OpGroupIAddNonUniformAMD"; |
| 1197 | case 5001: return "OpGroupFAddNonUniformAMD"; |
| 1198 | case 5002: return "OpGroupFMinNonUniformAMD"; |
| 1199 | case 5003: return "OpGroupUMinNonUniformAMD"; |
| 1200 | case 5004: return "OpGroupSMinNonUniformAMD"; |
| 1201 | case 5005: return "OpGroupFMaxNonUniformAMD"; |
| 1202 | case 5006: return "OpGroupUMaxNonUniformAMD"; |
| 1203 | case 5007: return "OpGroupSMaxNonUniformAMD"; |
| 1204 | #endif |
John Kessenich | 6c8aaac | 2017-02-27 01:20:51 -0700 | [diff] [blame] | 1205 | |
| 1206 | case OpcodeCeiling: |
| 1207 | default: |
| 1208 | return "Bad"; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1209 | } |
| 1210 | } |
| 1211 | |
| 1212 | // The set of objects that hold all the instruction/operand |
| 1213 | // parameterization information. |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 1214 | InstructionParameters InstructionDesc[OpCodeMask + 1]; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1215 | OperandParameters ExecutionModeOperands[ExecutionModeCeiling]; |
| 1216 | OperandParameters DecorationOperands[DecorationCeiling]; |
| 1217 | |
| 1218 | EnumDefinition OperandClassParams[OperandCount]; |
| 1219 | EnumParameters ExecutionModelParams[ExecutionModelCeiling]; |
| 1220 | EnumParameters AddressingParams[AddressingModelCeiling]; |
| 1221 | EnumParameters MemoryParams[MemoryModelCeiling]; |
| 1222 | EnumParameters ExecutionModeParams[ExecutionModeCeiling]; |
| 1223 | EnumParameters StorageParams[StorageClassCeiling]; |
| 1224 | EnumParameters SamplerAddressingModeParams[SamplerAddressingModeCeiling]; |
| 1225 | EnumParameters SamplerFilterModeParams[SamplerFilterModeCeiling]; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1226 | EnumParameters ImageFormatParams[ImageFormatCeiling]; |
| 1227 | EnumParameters ImageChannelOrderParams[ImageChannelOrderCeiling]; |
| 1228 | EnumParameters ImageChannelDataTypeParams[ImageChannelDataTypeCeiling]; |
| 1229 | EnumParameters ImageOperandsParams[ImageOperandsCeiling]; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1230 | EnumParameters FPFastMathParams[FPFastMathCeiling]; |
| 1231 | EnumParameters FPRoundingModeParams[FPRoundingModeCeiling]; |
| 1232 | EnumParameters LinkageTypeParams[LinkageTypeCeiling]; |
| 1233 | EnumParameters DecorationParams[DecorationCeiling]; |
| 1234 | EnumParameters BuiltInParams[BuiltInCeiling]; |
| 1235 | EnumParameters DimensionalityParams[DimensionCeiling]; |
| 1236 | EnumParameters FuncParamAttrParams[FuncParamAttrCeiling]; |
| 1237 | EnumParameters AccessQualifierParams[AccessQualifierCeiling]; |
| 1238 | EnumParameters GroupOperationParams[GroupOperationCeiling]; |
| 1239 | EnumParameters LoopControlParams[FunctionControlCeiling]; |
| 1240 | EnumParameters SelectionControlParams[SelectControlCeiling]; |
| 1241 | EnumParameters FunctionControlParams[FunctionControlCeiling]; |
| 1242 | EnumParameters MemorySemanticsParams[MemorySemanticsCeiling]; |
| 1243 | EnumParameters MemoryAccessParams[MemoryAccessCeiling]; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1244 | EnumParameters ScopeParams[ScopeCeiling]; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1245 | EnumParameters KernelEnqueueFlagsParams[KernelEnqueueFlagsCeiling]; |
| 1246 | EnumParameters KernelProfilingInfoParams[KernelProfilingInfoCeiling]; |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1247 | EnumParameters CapabilityParams[CapabilityCeiling]; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1248 | |
| 1249 | // Set up all the parameterizing descriptions of the opcodes, operands, etc. |
| 1250 | void Parameterize() |
| 1251 | { |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1252 | // only do this once. |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1253 | static bool initialized = false; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1254 | if (initialized) |
| 1255 | return; |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1256 | initialized = true; |
| 1257 | |
| 1258 | // Exceptions to having a result <id> and a resulting type <id>. |
| 1259 | // (Everything is initialized to have both). |
| 1260 | |
| 1261 | InstructionDesc[OpNop].setResultAndType(false, false); |
| 1262 | InstructionDesc[OpSource].setResultAndType(false, false); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1263 | InstructionDesc[OpSourceContinued].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1264 | InstructionDesc[OpSourceExtension].setResultAndType(false, false); |
| 1265 | InstructionDesc[OpExtension].setResultAndType(false, false); |
| 1266 | InstructionDesc[OpExtInstImport].setResultAndType(true, false); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1267 | InstructionDesc[OpCapability].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1268 | InstructionDesc[OpMemoryModel].setResultAndType(false, false); |
| 1269 | InstructionDesc[OpEntryPoint].setResultAndType(false, false); |
| 1270 | InstructionDesc[OpExecutionMode].setResultAndType(false, false); |
| 1271 | InstructionDesc[OpTypeVoid].setResultAndType(true, false); |
| 1272 | InstructionDesc[OpTypeBool].setResultAndType(true, false); |
| 1273 | InstructionDesc[OpTypeInt].setResultAndType(true, false); |
| 1274 | InstructionDesc[OpTypeFloat].setResultAndType(true, false); |
| 1275 | InstructionDesc[OpTypeVector].setResultAndType(true, false); |
| 1276 | InstructionDesc[OpTypeMatrix].setResultAndType(true, false); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1277 | InstructionDesc[OpTypeImage].setResultAndType(true, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1278 | InstructionDesc[OpTypeSampler].setResultAndType(true, false); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1279 | InstructionDesc[OpTypeSampledImage].setResultAndType(true, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1280 | InstructionDesc[OpTypeArray].setResultAndType(true, false); |
| 1281 | InstructionDesc[OpTypeRuntimeArray].setResultAndType(true, false); |
| 1282 | InstructionDesc[OpTypeStruct].setResultAndType(true, false); |
| 1283 | InstructionDesc[OpTypeOpaque].setResultAndType(true, false); |
| 1284 | InstructionDesc[OpTypePointer].setResultAndType(true, false); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1285 | InstructionDesc[OpTypeForwardPointer].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1286 | InstructionDesc[OpTypeFunction].setResultAndType(true, false); |
| 1287 | InstructionDesc[OpTypeEvent].setResultAndType(true, false); |
| 1288 | InstructionDesc[OpTypeDeviceEvent].setResultAndType(true, false); |
| 1289 | InstructionDesc[OpTypeReserveId].setResultAndType(true, false); |
| 1290 | InstructionDesc[OpTypeQueue].setResultAndType(true, false); |
| 1291 | InstructionDesc[OpTypePipe].setResultAndType(true, false); |
| 1292 | InstructionDesc[OpFunctionEnd].setResultAndType(false, false); |
| 1293 | InstructionDesc[OpStore].setResultAndType(false, false); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1294 | InstructionDesc[OpImageWrite].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1295 | InstructionDesc[OpDecorationGroup].setResultAndType(true, false); |
| 1296 | InstructionDesc[OpDecorate].setResultAndType(false, false); |
| 1297 | InstructionDesc[OpMemberDecorate].setResultAndType(false, false); |
| 1298 | InstructionDesc[OpGroupDecorate].setResultAndType(false, false); |
| 1299 | InstructionDesc[OpGroupMemberDecorate].setResultAndType(false, false); |
| 1300 | InstructionDesc[OpName].setResultAndType(false, false); |
| 1301 | InstructionDesc[OpMemberName].setResultAndType(false, false); |
| 1302 | InstructionDesc[OpString].setResultAndType(true, false); |
| 1303 | InstructionDesc[OpLine].setResultAndType(false, false); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1304 | InstructionDesc[OpNoLine].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1305 | InstructionDesc[OpCopyMemory].setResultAndType(false, false); |
| 1306 | InstructionDesc[OpCopyMemorySized].setResultAndType(false, false); |
| 1307 | InstructionDesc[OpEmitVertex].setResultAndType(false, false); |
| 1308 | InstructionDesc[OpEndPrimitive].setResultAndType(false, false); |
| 1309 | InstructionDesc[OpEmitStreamVertex].setResultAndType(false, false); |
| 1310 | InstructionDesc[OpEndStreamPrimitive].setResultAndType(false, false); |
| 1311 | InstructionDesc[OpControlBarrier].setResultAndType(false, false); |
| 1312 | InstructionDesc[OpMemoryBarrier].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1313 | InstructionDesc[OpAtomicStore].setResultAndType(false, false); |
| 1314 | InstructionDesc[OpLoopMerge].setResultAndType(false, false); |
| 1315 | InstructionDesc[OpSelectionMerge].setResultAndType(false, false); |
| 1316 | InstructionDesc[OpLabel].setResultAndType(true, false); |
| 1317 | InstructionDesc[OpBranch].setResultAndType(false, false); |
| 1318 | InstructionDesc[OpBranchConditional].setResultAndType(false, false); |
| 1319 | InstructionDesc[OpSwitch].setResultAndType(false, false); |
| 1320 | InstructionDesc[OpKill].setResultAndType(false, false); |
| 1321 | InstructionDesc[OpReturn].setResultAndType(false, false); |
| 1322 | InstructionDesc[OpReturnValue].setResultAndType(false, false); |
| 1323 | InstructionDesc[OpUnreachable].setResultAndType(false, false); |
| 1324 | InstructionDesc[OpLifetimeStart].setResultAndType(false, false); |
| 1325 | InstructionDesc[OpLifetimeStop].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1326 | InstructionDesc[OpCommitReadPipe].setResultAndType(false, false); |
| 1327 | InstructionDesc[OpCommitWritePipe].setResultAndType(false, false); |
| 1328 | InstructionDesc[OpGroupCommitWritePipe].setResultAndType(false, false); |
| 1329 | InstructionDesc[OpGroupCommitReadPipe].setResultAndType(false, false); |
| 1330 | InstructionDesc[OpCaptureEventProfilingInfo].setResultAndType(false, false); |
| 1331 | InstructionDesc[OpSetUserEventStatus].setResultAndType(false, false); |
| 1332 | InstructionDesc[OpRetainEvent].setResultAndType(false, false); |
| 1333 | InstructionDesc[OpReleaseEvent].setResultAndType(false, false); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1334 | InstructionDesc[OpGroupWaitEvents].setResultAndType(false, false); |
| 1335 | InstructionDesc[OpAtomicFlagClear].setResultAndType(false, false); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1336 | |
| 1337 | // Specific additional context-dependent operands |
| 1338 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1339 | ExecutionModeOperands[ExecutionModeInvocations].push(OperandLiteralNumber, "'Number of <<Invocation,invocations>>'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1340 | |
| 1341 | ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'x size'"); |
| 1342 | ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'y size'"); |
| 1343 | ExecutionModeOperands[ExecutionModeLocalSize].push(OperandLiteralNumber, "'z size'"); |
| 1344 | |
| 1345 | ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'x size'"); |
| 1346 | ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'y size'"); |
| 1347 | ExecutionModeOperands[ExecutionModeLocalSizeHint].push(OperandLiteralNumber, "'z size'"); |
| 1348 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1349 | ExecutionModeOperands[ExecutionModeOutputVertices].push(OperandLiteralNumber, "'Vertex count'"); |
| 1350 | ExecutionModeOperands[ExecutionModeVecTypeHint].push(OperandLiteralNumber, "'Vector type'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1351 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1352 | DecorationOperands[DecorationStream].push(OperandLiteralNumber, "'Stream Number'"); |
| 1353 | DecorationOperands[DecorationLocation].push(OperandLiteralNumber, "'Location'"); |
| 1354 | DecorationOperands[DecorationComponent].push(OperandLiteralNumber, "'Component'"); |
| 1355 | DecorationOperands[DecorationIndex].push(OperandLiteralNumber, "'Index'"); |
| 1356 | DecorationOperands[DecorationBinding].push(OperandLiteralNumber, "'Binding Point'"); |
| 1357 | DecorationOperands[DecorationDescriptorSet].push(OperandLiteralNumber, "'Descriptor Set'"); |
| 1358 | DecorationOperands[DecorationOffset].push(OperandLiteralNumber, "'Byte Offset'"); |
| 1359 | DecorationOperands[DecorationXfbBuffer].push(OperandLiteralNumber, "'XFB Buffer Number'"); |
| 1360 | DecorationOperands[DecorationXfbStride].push(OperandLiteralNumber, "'XFB Stride'"); |
| 1361 | DecorationOperands[DecorationArrayStride].push(OperandLiteralNumber, "'Array Stride'"); |
| 1362 | DecorationOperands[DecorationMatrixStride].push(OperandLiteralNumber, "'Matrix Stride'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1363 | DecorationOperands[DecorationBuiltIn].push(OperandLiteralNumber, "See <<BuiltIn,*BuiltIn*>>"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1364 | DecorationOperands[DecorationFPRoundingMode].push(OperandFPRoundingMode, "'Floating-Point Rounding Mode'"); |
| 1365 | DecorationOperands[DecorationFPFastMathMode].push(OperandFPFastMath, "'Fast-Math Mode'"); |
| 1366 | DecorationOperands[DecorationLinkageAttributes].push(OperandLiteralString, "'Name'"); |
| 1367 | DecorationOperands[DecorationLinkageAttributes].push(OperandLinkageType, "'Linkage Type'"); |
| 1368 | DecorationOperands[DecorationFuncParamAttr].push(OperandFuncParamAttr, "'Function Parameter Attribute'"); |
| 1369 | DecorationOperands[DecorationSpecId].push(OperandLiteralNumber, "'Specialization Constant ID'"); |
| 1370 | DecorationOperands[DecorationInputAttachmentIndex].push(OperandLiteralNumber, "'Attachment Index'"); |
| 1371 | DecorationOperands[DecorationAlignment].push(OperandLiteralNumber, "'Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1372 | |
| 1373 | OperandClassParams[OperandSource].set(SourceLanguageCeiling, SourceString, 0); |
| 1374 | OperandClassParams[OperandExecutionModel].set(ExecutionModelCeiling, ExecutionModelString, ExecutionModelParams); |
| 1375 | OperandClassParams[OperandAddressing].set(AddressingModelCeiling, AddressingString, AddressingParams); |
| 1376 | OperandClassParams[OperandMemory].set(MemoryModelCeiling, MemoryString, MemoryParams); |
| 1377 | OperandClassParams[OperandExecutionMode].set(ExecutionModeCeiling, ExecutionModeString, ExecutionModeParams); |
| 1378 | OperandClassParams[OperandExecutionMode].setOperands(ExecutionModeOperands); |
| 1379 | OperandClassParams[OperandStorage].set(StorageClassCeiling, StorageClassString, StorageParams); |
| 1380 | OperandClassParams[OperandDimensionality].set(DimensionCeiling, DimensionString, DimensionalityParams); |
| 1381 | OperandClassParams[OperandSamplerAddressingMode].set(SamplerAddressingModeCeiling, SamplerAddressingModeString, SamplerAddressingModeParams); |
| 1382 | OperandClassParams[OperandSamplerFilterMode].set(SamplerFilterModeCeiling, SamplerFilterModeString, SamplerFilterModeParams); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1383 | OperandClassParams[OperandSamplerImageFormat].set(ImageFormatCeiling, ImageFormatString, ImageFormatParams); |
| 1384 | OperandClassParams[OperandImageChannelOrder].set(ImageChannelOrderCeiling, ImageChannelOrderString, ImageChannelOrderParams); |
| 1385 | OperandClassParams[OperandImageChannelDataType].set(ImageChannelDataTypeCeiling, ImageChannelDataTypeString, ImageChannelDataTypeParams); |
| 1386 | OperandClassParams[OperandImageOperands].set(ImageOperandsCeiling, ImageOperandsString, ImageOperandsParams, true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1387 | OperandClassParams[OperandFPFastMath].set(FPFastMathCeiling, FPFastMathString, FPFastMathParams, true); |
| 1388 | OperandClassParams[OperandFPRoundingMode].set(FPRoundingModeCeiling, FPRoundingModeString, FPRoundingModeParams); |
| 1389 | OperandClassParams[OperandLinkageType].set(LinkageTypeCeiling, LinkageTypeString, LinkageTypeParams); |
| 1390 | OperandClassParams[OperandFuncParamAttr].set(FuncParamAttrCeiling, FuncParamAttrString, FuncParamAttrParams); |
| 1391 | OperandClassParams[OperandAccessQualifier].set(AccessQualifierCeiling, AccessQualifierString, AccessQualifierParams); |
| 1392 | OperandClassParams[OperandDecoration].set(DecorationCeiling, DecorationString, DecorationParams); |
| 1393 | OperandClassParams[OperandDecoration].setOperands(DecorationOperands); |
| 1394 | OperandClassParams[OperandBuiltIn].set(BuiltInCeiling, BuiltInString, BuiltInParams); |
| 1395 | OperandClassParams[OperandSelect].set(SelectControlCeiling, SelectControlString, SelectionControlParams, true); |
| 1396 | OperandClassParams[OperandLoop].set(LoopControlCeiling, LoopControlString, LoopControlParams, true); |
| 1397 | OperandClassParams[OperandFunction].set(FunctionControlCeiling, FunctionControlString, FunctionControlParams, true); |
| 1398 | OperandClassParams[OperandMemorySemantics].set(MemorySemanticsCeiling, MemorySemanticsString, MemorySemanticsParams, true); |
| 1399 | OperandClassParams[OperandMemoryAccess].set(MemoryAccessCeiling, MemoryAccessString, MemoryAccessParams, true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1400 | OperandClassParams[OperandScope].set(ScopeCeiling, ScopeString, ScopeParams); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1401 | OperandClassParams[OperandGroupOperation].set(GroupOperationCeiling, GroupOperationString, GroupOperationParams); |
| 1402 | OperandClassParams[OperandKernelEnqueueFlags].set(KernelEnqueueFlagsCeiling, KernelEnqueueFlagsString, KernelEnqueueFlagsParams); |
| 1403 | OperandClassParams[OperandKernelProfilingInfo].set(KernelProfilingInfoCeiling, KernelProfilingInfoString, KernelProfilingInfoParams, true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1404 | OperandClassParams[OperandCapability].set(CapabilityCeiling, CapabilityString, CapabilityParams); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1405 | OperandClassParams[OperandOpcode].set(OpcodeCeiling, OpcodeString, 0); |
| 1406 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1407 | CapabilityParams[CapabilityShader].caps.push_back(CapabilityMatrix); |
| 1408 | CapabilityParams[CapabilityGeometry].caps.push_back(CapabilityShader); |
| 1409 | CapabilityParams[CapabilityTessellation].caps.push_back(CapabilityShader); |
| 1410 | CapabilityParams[CapabilityVector16].caps.push_back(CapabilityKernel); |
| 1411 | CapabilityParams[CapabilityFloat16Buffer].caps.push_back(CapabilityKernel); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1412 | CapabilityParams[CapabilityInt64Atomics].caps.push_back(CapabilityInt64); |
| 1413 | CapabilityParams[CapabilityImageBasic].caps.push_back(CapabilityKernel); |
| 1414 | CapabilityParams[CapabilityImageReadWrite].caps.push_back(CapabilityImageBasic); |
| 1415 | CapabilityParams[CapabilityImageMipmap].caps.push_back(CapabilityImageBasic); |
| 1416 | CapabilityParams[CapabilityPipes].caps.push_back(CapabilityKernel); |
| 1417 | CapabilityParams[CapabilityDeviceEnqueue].caps.push_back(CapabilityKernel); |
| 1418 | CapabilityParams[CapabilityLiteralSampler].caps.push_back(CapabilityKernel); |
| 1419 | CapabilityParams[CapabilityAtomicStorage].caps.push_back(CapabilityShader); |
| 1420 | CapabilityParams[CapabilitySampleRateShading].caps.push_back(CapabilityShader); |
| 1421 | CapabilityParams[CapabilityTessellationPointSize].caps.push_back(CapabilityTessellation); |
| 1422 | CapabilityParams[CapabilityGeometryPointSize].caps.push_back(CapabilityGeometry); |
| 1423 | CapabilityParams[CapabilityImageGatherExtended].caps.push_back(CapabilityShader); |
| 1424 | CapabilityParams[CapabilityStorageImageExtendedFormats].caps.push_back(CapabilityShader); |
| 1425 | CapabilityParams[CapabilityStorageImageMultisample].caps.push_back(CapabilityShader); |
| 1426 | CapabilityParams[CapabilityUniformBufferArrayDynamicIndexing].caps.push_back(CapabilityShader); |
| 1427 | CapabilityParams[CapabilitySampledImageArrayDynamicIndexing].caps.push_back(CapabilityShader); |
| 1428 | CapabilityParams[CapabilityStorageBufferArrayDynamicIndexing].caps.push_back(CapabilityShader); |
| 1429 | CapabilityParams[CapabilityStorageImageArrayDynamicIndexing].caps.push_back(CapabilityShader); |
| 1430 | CapabilityParams[CapabilityClipDistance].caps.push_back(CapabilityShader); |
| 1431 | CapabilityParams[CapabilityCullDistance].caps.push_back(CapabilityShader); |
| 1432 | CapabilityParams[CapabilityGenericPointer].caps.push_back(CapabilityAddresses); |
| 1433 | CapabilityParams[CapabilityInt8].caps.push_back(CapabilityKernel); |
| 1434 | CapabilityParams[CapabilityInputAttachment].caps.push_back(CapabilityShader); |
| 1435 | CapabilityParams[CapabilityMinLod].caps.push_back(CapabilityShader); |
| 1436 | CapabilityParams[CapabilitySparseResidency].caps.push_back(CapabilityShader); |
| 1437 | CapabilityParams[CapabilitySampled1D].caps.push_back(CapabilityShader); |
| 1438 | CapabilityParams[CapabilitySampledRect].caps.push_back(CapabilityShader); |
| 1439 | CapabilityParams[CapabilitySampledBuffer].caps.push_back(CapabilityShader); |
| 1440 | CapabilityParams[CapabilitySampledCubeArray].caps.push_back(CapabilityShader); |
| 1441 | CapabilityParams[CapabilityImageMSArray].caps.push_back(CapabilityShader); |
| 1442 | CapabilityParams[CapabilityImage1D].caps.push_back(CapabilitySampled1D); |
| 1443 | CapabilityParams[CapabilityImageRect].caps.push_back(CapabilitySampledRect); |
| 1444 | CapabilityParams[CapabilityImageBuffer].caps.push_back(CapabilitySampledBuffer); |
| 1445 | CapabilityParams[CapabilityImageCubeArray].caps.push_back(CapabilitySampledCubeArray); |
| 1446 | CapabilityParams[CapabilityImageQuery].caps.push_back(CapabilityShader); |
| 1447 | CapabilityParams[CapabilityDerivativeControl].caps.push_back(CapabilityShader); |
| 1448 | CapabilityParams[CapabilityInterpolationFunction].caps.push_back(CapabilityShader); |
| 1449 | CapabilityParams[CapabilityTransformFeedback].caps.push_back(CapabilityShader); |
| 1450 | CapabilityParams[CapabilityGeometryStreams].caps.push_back(CapabilityGeometry); |
| 1451 | CapabilityParams[CapabilityStorageImageReadWithoutFormat].caps.push_back(CapabilityShader); |
| 1452 | CapabilityParams[CapabilityStorageImageWriteWithoutFormat].caps.push_back(CapabilityShader); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1453 | CapabilityParams[CapabilityMultiViewport].caps.push_back(CapabilityGeometry); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1454 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1455 | AddressingParams[AddressingModelPhysical32].caps.push_back(CapabilityAddresses); |
| 1456 | AddressingParams[AddressingModelPhysical64].caps.push_back(CapabilityAddresses); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1457 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1458 | MemoryParams[MemoryModelSimple].caps.push_back(CapabilityShader); |
| 1459 | MemoryParams[MemoryModelGLSL450].caps.push_back(CapabilityShader); |
| 1460 | MemoryParams[MemoryModelOpenCL].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1461 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1462 | MemorySemanticsParams[MemorySemanticsUniformMemoryShift].caps.push_back(CapabilityShader); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1463 | MemorySemanticsParams[MemorySemanticsAtomicCounterMemoryShift].caps.push_back(CapabilityAtomicStorage); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1464 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1465 | ExecutionModelParams[ExecutionModelVertex].caps.push_back(CapabilityShader); |
| 1466 | ExecutionModelParams[ExecutionModelTessellationControl].caps.push_back(CapabilityTessellation); |
| 1467 | ExecutionModelParams[ExecutionModelTessellationEvaluation].caps.push_back(CapabilityTessellation); |
| 1468 | ExecutionModelParams[ExecutionModelGeometry].caps.push_back(CapabilityGeometry); |
| 1469 | ExecutionModelParams[ExecutionModelFragment].caps.push_back(CapabilityShader); |
| 1470 | ExecutionModelParams[ExecutionModelGLCompute].caps.push_back(CapabilityShader); |
| 1471 | ExecutionModelParams[ExecutionModelKernel].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1472 | |
| 1473 | // Storage capabilites |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1474 | StorageParams[StorageClassInput].caps.push_back(CapabilityShader); |
| 1475 | StorageParams[StorageClassUniform].caps.push_back(CapabilityShader); |
| 1476 | StorageParams[StorageClassOutput].caps.push_back(CapabilityShader); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1477 | StorageParams[StorageClassPrivate].caps.push_back(CapabilityShader); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1478 | StorageParams[StorageClassGeneric].caps.push_back(CapabilityKernel); |
| 1479 | StorageParams[StorageClassAtomicCounter].caps.push_back(CapabilityAtomicStorage); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1480 | StorageParams[StorageClassPushConstant].caps.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1481 | |
| 1482 | // Sampler Filter & Addressing mode capabilities |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1483 | SamplerAddressingModeParams[SamplerAddressingModeNone].caps.push_back(CapabilityKernel); |
| 1484 | SamplerAddressingModeParams[SamplerAddressingModeClampToEdge].caps.push_back(CapabilityKernel); |
| 1485 | SamplerAddressingModeParams[SamplerAddressingModeClamp].caps.push_back(CapabilityKernel); |
| 1486 | SamplerAddressingModeParams[SamplerAddressingModeRepeat].caps.push_back(CapabilityKernel); |
| 1487 | SamplerAddressingModeParams[SamplerAddressingModeRepeatMirrored].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1488 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1489 | SamplerFilterModeParams[SamplerFilterModeNearest].caps.push_back(CapabilityKernel); |
| 1490 | SamplerFilterModeParams[SamplerFilterModeLinear].caps.push_back(CapabilityKernel); |
| 1491 | |
| 1492 | // image format capabilities |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1493 | |
| 1494 | // ES/Desktop float |
| 1495 | ImageFormatParams[ImageFormatRgba32f].caps.push_back(CapabilityShader); |
| 1496 | ImageFormatParams[ImageFormatRgba16f].caps.push_back(CapabilityShader); |
| 1497 | ImageFormatParams[ImageFormatR32f].caps.push_back(CapabilityShader); |
| 1498 | ImageFormatParams[ImageFormatRgba8].caps.push_back(CapabilityShader); |
| 1499 | ImageFormatParams[ImageFormatRgba8Snorm].caps.push_back(CapabilityShader); |
| 1500 | |
| 1501 | // Desktop float |
| 1502 | ImageFormatParams[ImageFormatRg32f].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1503 | ImageFormatParams[ImageFormatRg16f].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1504 | ImageFormatParams[ImageFormatR11fG11fB10f].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1505 | ImageFormatParams[ImageFormatR16f].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1506 | ImageFormatParams[ImageFormatRgba16].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1507 | ImageFormatParams[ImageFormatRgb10A2].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1508 | ImageFormatParams[ImageFormatRg16].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1509 | ImageFormatParams[ImageFormatRg8].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1510 | ImageFormatParams[ImageFormatR16].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1511 | ImageFormatParams[ImageFormatR8].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1512 | ImageFormatParams[ImageFormatRgba16Snorm].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1513 | ImageFormatParams[ImageFormatRg16Snorm].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1514 | ImageFormatParams[ImageFormatRg8Snorm].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1515 | ImageFormatParams[ImageFormatR16Snorm].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1516 | ImageFormatParams[ImageFormatR8Snorm].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1517 | |
| 1518 | // ES/Desktop int |
| 1519 | ImageFormatParams[ImageFormatRgba32i].caps.push_back(CapabilityShader); |
| 1520 | ImageFormatParams[ImageFormatRgba16i].caps.push_back(CapabilityShader); |
| 1521 | ImageFormatParams[ImageFormatRgba8i].caps.push_back(CapabilityShader); |
| 1522 | ImageFormatParams[ImageFormatR32i].caps.push_back(CapabilityShader); |
| 1523 | |
| 1524 | // Desktop int |
| 1525 | ImageFormatParams[ImageFormatRg32i].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1526 | ImageFormatParams[ImageFormatRg16i].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1527 | ImageFormatParams[ImageFormatRg8i].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1528 | ImageFormatParams[ImageFormatR16i].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1529 | ImageFormatParams[ImageFormatR8i].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1530 | |
| 1531 | // ES/Desktop uint |
| 1532 | ImageFormatParams[ImageFormatRgba32ui].caps.push_back(CapabilityShader); |
| 1533 | ImageFormatParams[ImageFormatRgba16ui].caps.push_back(CapabilityShader); |
| 1534 | ImageFormatParams[ImageFormatRgba8ui].caps.push_back(CapabilityShader); |
| 1535 | ImageFormatParams[ImageFormatR32ui].caps.push_back(CapabilityShader); |
| 1536 | |
| 1537 | // Desktop uint |
| 1538 | ImageFormatParams[ImageFormatRgb10a2ui].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1539 | ImageFormatParams[ImageFormatRg32ui].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1540 | ImageFormatParams[ImageFormatRg16ui].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1541 | ImageFormatParams[ImageFormatRg8ui].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1542 | ImageFormatParams[ImageFormatR16ui].caps.push_back(CapabilityStorageImageExtendedFormats); |
| 1543 | ImageFormatParams[ImageFormatR8ui].caps.push_back(CapabilityStorageImageExtendedFormats); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1544 | |
| 1545 | // image channel order capabilities |
| 1546 | for (int i = 0; i < ImageChannelOrderCeiling; ++i) { |
| 1547 | ImageChannelOrderParams[i].caps.push_back(CapabilityKernel); |
| 1548 | } |
| 1549 | |
| 1550 | // image channel type capabilities |
| 1551 | for (int i = 0; i < ImageChannelDataTypeCeiling; ++i) { |
| 1552 | ImageChannelDataTypeParams[i].caps.push_back(CapabilityKernel); |
| 1553 | } |
| 1554 | |
| 1555 | // image lookup operands |
| 1556 | ImageOperandsParams[ImageOperandsBiasShift].caps.push_back(CapabilityShader); |
| 1557 | ImageOperandsParams[ImageOperandsOffsetShift].caps.push_back(CapabilityImageGatherExtended); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1558 | ImageOperandsParams[ImageOperandsMinLodShift].caps.push_back(CapabilityMinLod); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1559 | |
| 1560 | // fast math flags capabilities |
| 1561 | for (int i = 0; i < FPFastMathCeiling; ++i) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1562 | FPFastMathParams[i].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1563 | } |
| 1564 | |
| 1565 | // fp rounding mode capabilities |
| 1566 | for (int i = 0; i < FPRoundingModeCeiling; ++i) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1567 | FPRoundingModeParams[i].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1568 | } |
| 1569 | |
| 1570 | // linkage types |
| 1571 | for (int i = 0; i < LinkageTypeCeiling; ++i) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1572 | LinkageTypeParams[i].caps.push_back(CapabilityLinkage); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1573 | } |
| 1574 | |
| 1575 | // function argument types |
| 1576 | for (int i = 0; i < FuncParamAttrCeiling; ++i) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1577 | FuncParamAttrParams[i].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1578 | } |
| 1579 | |
| 1580 | // function argument types |
| 1581 | for (int i = 0; i < AccessQualifierCeiling; ++i) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1582 | AccessQualifierParams[i].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1583 | } |
| 1584 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1585 | ExecutionModeParams[ExecutionModeInvocations].caps.push_back(CapabilityGeometry); |
| 1586 | ExecutionModeParams[ExecutionModeSpacingEqual].caps.push_back(CapabilityTessellation); |
| 1587 | ExecutionModeParams[ExecutionModeSpacingFractionalEven].caps.push_back(CapabilityTessellation); |
| 1588 | ExecutionModeParams[ExecutionModeSpacingFractionalOdd].caps.push_back(CapabilityTessellation); |
| 1589 | ExecutionModeParams[ExecutionModeVertexOrderCw].caps.push_back(CapabilityTessellation); |
| 1590 | ExecutionModeParams[ExecutionModeVertexOrderCcw].caps.push_back(CapabilityTessellation); |
| 1591 | ExecutionModeParams[ExecutionModePixelCenterInteger].caps.push_back(CapabilityShader); |
| 1592 | ExecutionModeParams[ExecutionModeOriginUpperLeft].caps.push_back(CapabilityShader); |
| 1593 | ExecutionModeParams[ExecutionModeOriginLowerLeft].caps.push_back(CapabilityShader); |
| 1594 | ExecutionModeParams[ExecutionModeEarlyFragmentTests].caps.push_back(CapabilityShader); |
| 1595 | ExecutionModeParams[ExecutionModePointMode].caps.push_back(CapabilityTessellation); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1596 | ExecutionModeParams[ExecutionModeXfb].caps.push_back(CapabilityTransformFeedback); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1597 | ExecutionModeParams[ExecutionModeDepthReplacing].caps.push_back(CapabilityShader); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1598 | ExecutionModeParams[ExecutionModeDepthGreater].caps.push_back(CapabilityShader); |
| 1599 | ExecutionModeParams[ExecutionModeDepthLess].caps.push_back(CapabilityShader); |
| 1600 | ExecutionModeParams[ExecutionModeDepthUnchanged].caps.push_back(CapabilityShader); |
| 1601 | ExecutionModeParams[ExecutionModeLocalSizeHint].caps.push_back(CapabilityKernel); |
| 1602 | ExecutionModeParams[ExecutionModeInputPoints].caps.push_back(CapabilityGeometry); |
| 1603 | ExecutionModeParams[ExecutionModeInputLines].caps.push_back(CapabilityGeometry); |
| 1604 | ExecutionModeParams[ExecutionModeInputLinesAdjacency].caps.push_back(CapabilityGeometry); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1605 | ExecutionModeParams[ExecutionModeTriangles].caps.push_back(CapabilityGeometry); |
| 1606 | ExecutionModeParams[ExecutionModeTriangles].caps.push_back(CapabilityTessellation); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1607 | ExecutionModeParams[ExecutionModeInputTrianglesAdjacency].caps.push_back(CapabilityGeometry); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1608 | ExecutionModeParams[ExecutionModeQuads].caps.push_back(CapabilityTessellation); |
| 1609 | ExecutionModeParams[ExecutionModeIsolines].caps.push_back(CapabilityTessellation); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1610 | ExecutionModeParams[ExecutionModeOutputVertices].caps.push_back(CapabilityGeometry); |
| 1611 | ExecutionModeParams[ExecutionModeOutputVertices].caps.push_back(CapabilityTessellation); |
| 1612 | ExecutionModeParams[ExecutionModeOutputPoints].caps.push_back(CapabilityGeometry); |
| 1613 | ExecutionModeParams[ExecutionModeOutputLineStrip].caps.push_back(CapabilityGeometry); |
| 1614 | ExecutionModeParams[ExecutionModeOutputTriangleStrip].caps.push_back(CapabilityGeometry); |
| 1615 | ExecutionModeParams[ExecutionModeVecTypeHint].caps.push_back(CapabilityKernel); |
| 1616 | ExecutionModeParams[ExecutionModeContractionOff].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1617 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1618 | DecorationParams[DecorationRelaxedPrecision].caps.push_back(CapabilityShader); |
| 1619 | DecorationParams[DecorationBlock].caps.push_back(CapabilityShader); |
| 1620 | DecorationParams[DecorationBufferBlock].caps.push_back(CapabilityShader); |
| 1621 | DecorationParams[DecorationRowMajor].caps.push_back(CapabilityMatrix); |
| 1622 | DecorationParams[DecorationColMajor].caps.push_back(CapabilityMatrix); |
| 1623 | DecorationParams[DecorationGLSLShared].caps.push_back(CapabilityShader); |
| 1624 | DecorationParams[DecorationGLSLPacked].caps.push_back(CapabilityShader); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1625 | DecorationParams[DecorationNoPerspective].caps.push_back(CapabilityShader); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1626 | DecorationParams[DecorationFlat].caps.push_back(CapabilityShader); |
| 1627 | DecorationParams[DecorationPatch].caps.push_back(CapabilityTessellation); |
| 1628 | DecorationParams[DecorationCentroid].caps.push_back(CapabilityShader); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1629 | DecorationParams[DecorationSample].caps.push_back(CapabilitySampleRateShading); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1630 | DecorationParams[DecorationInvariant].caps.push_back(CapabilityShader); |
| 1631 | DecorationParams[DecorationConstant].caps.push_back(CapabilityKernel); |
| 1632 | DecorationParams[DecorationUniform].caps.push_back(CapabilityShader); |
| 1633 | DecorationParams[DecorationCPacked].caps.push_back(CapabilityKernel); |
| 1634 | DecorationParams[DecorationSaturatedConversion].caps.push_back(CapabilityKernel); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1635 | DecorationParams[DecorationStream].caps.push_back(CapabilityGeometryStreams); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1636 | DecorationParams[DecorationLocation].caps.push_back(CapabilityShader); |
| 1637 | DecorationParams[DecorationComponent].caps.push_back(CapabilityShader); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1638 | DecorationParams[DecorationOffset].caps.push_back(CapabilityShader); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1639 | DecorationParams[DecorationIndex].caps.push_back(CapabilityShader); |
| 1640 | DecorationParams[DecorationBinding].caps.push_back(CapabilityShader); |
| 1641 | DecorationParams[DecorationDescriptorSet].caps.push_back(CapabilityShader); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1642 | DecorationParams[DecorationXfbBuffer].caps.push_back(CapabilityTransformFeedback); |
| 1643 | DecorationParams[DecorationXfbStride].caps.push_back(CapabilityTransformFeedback); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1644 | DecorationParams[DecorationArrayStride].caps.push_back(CapabilityShader); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1645 | DecorationParams[DecorationMatrixStride].caps.push_back(CapabilityMatrix); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1646 | DecorationParams[DecorationFuncParamAttr].caps.push_back(CapabilityKernel); |
| 1647 | DecorationParams[DecorationFPRoundingMode].caps.push_back(CapabilityKernel); |
| 1648 | DecorationParams[DecorationFPFastMathMode].caps.push_back(CapabilityKernel); |
| 1649 | DecorationParams[DecorationLinkageAttributes].caps.push_back(CapabilityLinkage); |
| 1650 | DecorationParams[DecorationSpecId].caps.push_back(CapabilityShader); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1651 | DecorationParams[DecorationNoContraction].caps.push_back(CapabilityShader); |
| 1652 | DecorationParams[DecorationInputAttachmentIndex].caps.push_back(CapabilityInputAttachment); |
| 1653 | DecorationParams[DecorationAlignment].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1654 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1655 | BuiltInParams[BuiltInPosition].caps.push_back(CapabilityShader); |
| 1656 | BuiltInParams[BuiltInPointSize].caps.push_back(CapabilityShader); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1657 | BuiltInParams[BuiltInClipDistance].caps.push_back(CapabilityClipDistance); |
| 1658 | BuiltInParams[BuiltInCullDistance].caps.push_back(CapabilityCullDistance); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1659 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1660 | BuiltInParams[BuiltInVertexId].caps.push_back(CapabilityShader); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1661 | BuiltInParams[BuiltInVertexId].desc = "Vertex ID, which takes on values 0, 1, 2, . . . ."; |
| 1662 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1663 | BuiltInParams[BuiltInInstanceId].caps.push_back(CapabilityShader); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1664 | BuiltInParams[BuiltInInstanceId].desc = "Instance ID, which takes on values 0, 1, 2, . . . ."; |
| 1665 | |
| 1666 | BuiltInParams[BuiltInVertexIndex].caps.push_back(CapabilityShader); |
| 1667 | BuiltInParams[BuiltInVertexIndex].desc = "Vertex index, which takes on values base, base+1, base+2, . . . ."; |
| 1668 | |
| 1669 | BuiltInParams[BuiltInInstanceIndex].caps.push_back(CapabilityShader); |
| 1670 | BuiltInParams[BuiltInInstanceIndex].desc = "Instance index, which takes on values base, base+1, base+2, . . . ."; |
| 1671 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1672 | BuiltInParams[BuiltInPrimitiveId].caps.push_back(CapabilityGeometry); |
| 1673 | BuiltInParams[BuiltInPrimitiveId].caps.push_back(CapabilityTessellation); |
| 1674 | BuiltInParams[BuiltInInvocationId].caps.push_back(CapabilityGeometry); |
| 1675 | BuiltInParams[BuiltInInvocationId].caps.push_back(CapabilityTessellation); |
| 1676 | BuiltInParams[BuiltInLayer].caps.push_back(CapabilityGeometry); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1677 | BuiltInParams[BuiltInViewportIndex].caps.push_back(CapabilityMultiViewport); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1678 | BuiltInParams[BuiltInTessLevelOuter].caps.push_back(CapabilityTessellation); |
| 1679 | BuiltInParams[BuiltInTessLevelInner].caps.push_back(CapabilityTessellation); |
| 1680 | BuiltInParams[BuiltInTessCoord].caps.push_back(CapabilityTessellation); |
| 1681 | BuiltInParams[BuiltInPatchVertices].caps.push_back(CapabilityTessellation); |
| 1682 | BuiltInParams[BuiltInFragCoord].caps.push_back(CapabilityShader); |
| 1683 | BuiltInParams[BuiltInPointCoord].caps.push_back(CapabilityShader); |
| 1684 | BuiltInParams[BuiltInFrontFacing].caps.push_back(CapabilityShader); |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 1685 | BuiltInParams[BuiltInSampleId].caps.push_back(CapabilitySampleRateShading); |
| 1686 | BuiltInParams[BuiltInSamplePosition].caps.push_back(CapabilitySampleRateShading); |
| 1687 | BuiltInParams[BuiltInSampleMask].caps.push_back(CapabilitySampleRateShading); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1688 | BuiltInParams[BuiltInFragDepth].caps.push_back(CapabilityShader); |
| 1689 | BuiltInParams[BuiltInHelperInvocation].caps.push_back(CapabilityShader); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1690 | BuiltInParams[BuiltInWorkDim].caps.push_back(CapabilityKernel); |
| 1691 | BuiltInParams[BuiltInGlobalSize].caps.push_back(CapabilityKernel); |
| 1692 | BuiltInParams[BuiltInEnqueuedWorkgroupSize].caps.push_back(CapabilityKernel); |
| 1693 | BuiltInParams[BuiltInGlobalOffset].caps.push_back(CapabilityKernel); |
| 1694 | BuiltInParams[BuiltInGlobalLinearId].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1695 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1696 | BuiltInParams[BuiltInSubgroupSize].caps.push_back(CapabilityKernel); |
| 1697 | BuiltInParams[BuiltInSubgroupMaxSize].caps.push_back(CapabilityKernel); |
| 1698 | BuiltInParams[BuiltInNumSubgroups].caps.push_back(CapabilityKernel); |
| 1699 | BuiltInParams[BuiltInNumEnqueuedSubgroups].caps.push_back(CapabilityKernel); |
| 1700 | BuiltInParams[BuiltInSubgroupId].caps.push_back(CapabilityKernel); |
| 1701 | BuiltInParams[BuiltInSubgroupLocalInvocationId].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1702 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1703 | DimensionalityParams[Dim1D].caps.push_back(CapabilitySampled1D); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1704 | DimensionalityParams[DimCube].caps.push_back(CapabilityShader); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1705 | DimensionalityParams[DimRect].caps.push_back(CapabilitySampledRect); |
| 1706 | DimensionalityParams[DimBuffer].caps.push_back(CapabilitySampledBuffer); |
| 1707 | DimensionalityParams[DimSubpassData].caps.push_back(CapabilityInputAttachment); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1708 | |
| 1709 | // Group Operations |
| 1710 | for (int i = 0; i < GroupOperationCeiling; ++i) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1711 | GroupOperationParams[i].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1712 | } |
| 1713 | |
| 1714 | // Enqueue flags |
| 1715 | for (int i = 0; i < KernelEnqueueFlagsCeiling; ++i) { |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1716 | KernelEnqueueFlagsParams[i].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1717 | } |
| 1718 | |
| 1719 | // Profiling info |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1720 | KernelProfilingInfoParams[0].caps.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1721 | |
| 1722 | // set name of operator, an initial set of <id> style operands, and the description |
| 1723 | |
| 1724 | InstructionDesc[OpSource].operands.push(OperandSource, ""); |
| 1725 | InstructionDesc[OpSource].operands.push(OperandLiteralNumber, "'Version'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1726 | InstructionDesc[OpSource].operands.push(OperandId, "'File'", true); |
| 1727 | InstructionDesc[OpSource].operands.push(OperandLiteralString, "'Source'", true); |
| 1728 | |
| 1729 | InstructionDesc[OpSourceContinued].operands.push(OperandLiteralString, "'Continued Source'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1730 | |
| 1731 | InstructionDesc[OpSourceExtension].operands.push(OperandLiteralString, "'Extension'"); |
| 1732 | |
| 1733 | InstructionDesc[OpName].operands.push(OperandId, "'Target'"); |
| 1734 | InstructionDesc[OpName].operands.push(OperandLiteralString, "'Name'"); |
| 1735 | |
| 1736 | InstructionDesc[OpMemberName].operands.push(OperandId, "'Type'"); |
| 1737 | InstructionDesc[OpMemberName].operands.push(OperandLiteralNumber, "'Member'"); |
| 1738 | InstructionDesc[OpMemberName].operands.push(OperandLiteralString, "'Name'"); |
| 1739 | |
| 1740 | InstructionDesc[OpString].operands.push(OperandLiteralString, "'String'"); |
| 1741 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1742 | InstructionDesc[OpLine].operands.push(OperandId, "'File'"); |
| 1743 | InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Line'"); |
| 1744 | InstructionDesc[OpLine].operands.push(OperandLiteralNumber, "'Column'"); |
| 1745 | |
| 1746 | InstructionDesc[OpExtension].operands.push(OperandLiteralString, "'Name'"); |
| 1747 | |
| 1748 | InstructionDesc[OpExtInstImport].operands.push(OperandLiteralString, "'Name'"); |
| 1749 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1750 | InstructionDesc[OpCapability].operands.push(OperandCapability, "'Capability'"); |
| 1751 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1752 | InstructionDesc[OpMemoryModel].operands.push(OperandAddressing, ""); |
| 1753 | InstructionDesc[OpMemoryModel].operands.push(OperandMemory, ""); |
| 1754 | |
| 1755 | InstructionDesc[OpEntryPoint].operands.push(OperandExecutionModel, ""); |
| 1756 | InstructionDesc[OpEntryPoint].operands.push(OperandId, "'Entry Point'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1757 | InstructionDesc[OpEntryPoint].operands.push(OperandLiteralString, "'Name'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1758 | InstructionDesc[OpEntryPoint].operands.push(OperandVariableIds, "'Interface'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1759 | |
| 1760 | InstructionDesc[OpExecutionMode].operands.push(OperandId, "'Entry Point'"); |
| 1761 | InstructionDesc[OpExecutionMode].operands.push(OperandExecutionMode, "'Mode'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1762 | InstructionDesc[OpExecutionMode].operands.push(OperandOptionalLiteral, "See <<Execution_Mode,Execution Mode>>"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1763 | |
| 1764 | InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Width'"); |
| 1765 | InstructionDesc[OpTypeInt].operands.push(OperandLiteralNumber, "'Signedness'"); |
| 1766 | |
| 1767 | InstructionDesc[OpTypeFloat].operands.push(OperandLiteralNumber, "'Width'"); |
| 1768 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1769 | InstructionDesc[OpTypeVector].operands.push(OperandId, "'Component Type'"); |
| 1770 | InstructionDesc[OpTypeVector].operands.push(OperandLiteralNumber, "'Component Count'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1771 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1772 | InstructionDesc[OpTypeMatrix].capabilities.push_back(CapabilityMatrix); |
| 1773 | InstructionDesc[OpTypeMatrix].operands.push(OperandId, "'Column Type'"); |
| 1774 | InstructionDesc[OpTypeMatrix].operands.push(OperandLiteralNumber, "'Column Count'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1775 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1776 | InstructionDesc[OpTypeImage].operands.push(OperandId, "'Sampled Type'"); |
| 1777 | InstructionDesc[OpTypeImage].operands.push(OperandDimensionality, ""); |
| 1778 | InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Depth'"); |
| 1779 | InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Arrayed'"); |
| 1780 | InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'MS'"); |
| 1781 | InstructionDesc[OpTypeImage].operands.push(OperandLiteralNumber, "'Sampled'"); |
| 1782 | InstructionDesc[OpTypeImage].operands.push(OperandSamplerImageFormat, ""); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1783 | InstructionDesc[OpTypeImage].operands.push(OperandAccessQualifier, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1784 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1785 | InstructionDesc[OpTypeSampledImage].operands.push(OperandId, "'Image Type'"); |
| 1786 | |
| 1787 | InstructionDesc[OpTypeArray].operands.push(OperandId, "'Element Type'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1788 | InstructionDesc[OpTypeArray].operands.push(OperandId, "'Length'"); |
| 1789 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1790 | InstructionDesc[OpTypeRuntimeArray].capabilities.push_back(CapabilityShader); |
| 1791 | InstructionDesc[OpTypeRuntimeArray].operands.push(OperandId, "'Element Type'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1792 | |
| 1793 | InstructionDesc[OpTypeStruct].operands.push(OperandVariableIds, "'Member 0 type', +\n'member 1 type', +\n..."); |
| 1794 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1795 | InstructionDesc[OpTypeOpaque].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1796 | InstructionDesc[OpTypeOpaque].operands.push(OperandLiteralString, "The name of the opaque type."); |
| 1797 | |
| 1798 | InstructionDesc[OpTypePointer].operands.push(OperandStorage, ""); |
| 1799 | InstructionDesc[OpTypePointer].operands.push(OperandId, "'Type'"); |
| 1800 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1801 | InstructionDesc[OpTypeForwardPointer].capabilities.push_back(CapabilityAddresses); |
| 1802 | InstructionDesc[OpTypeForwardPointer].operands.push(OperandId, "'Pointer Type'"); |
| 1803 | InstructionDesc[OpTypeForwardPointer].operands.push(OperandStorage, ""); |
| 1804 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1805 | InstructionDesc[OpTypeEvent].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1806 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1807 | InstructionDesc[OpTypeDeviceEvent].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1808 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1809 | InstructionDesc[OpTypeReserveId].capabilities.push_back(CapabilityPipes); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1810 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1811 | InstructionDesc[OpTypeQueue].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1812 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1813 | InstructionDesc[OpTypePipe].operands.push(OperandAccessQualifier, "'Qualifier'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1814 | InstructionDesc[OpTypePipe].capabilities.push_back(CapabilityPipes); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1815 | |
| 1816 | InstructionDesc[OpTypeFunction].operands.push(OperandId, "'Return Type'"); |
| 1817 | InstructionDesc[OpTypeFunction].operands.push(OperandVariableIds, "'Parameter 0 Type', +\n'Parameter 1 Type', +\n..."); |
| 1818 | |
| 1819 | InstructionDesc[OpConstant].operands.push(OperandVariableLiterals, "'Value'"); |
| 1820 | |
| 1821 | InstructionDesc[OpConstantComposite].operands.push(OperandVariableIds, "'Constituents'"); |
| 1822 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1823 | InstructionDesc[OpConstantSampler].capabilities.push_back(CapabilityLiteralSampler); |
| 1824 | InstructionDesc[OpConstantSampler].operands.push(OperandSamplerAddressingMode, ""); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1825 | InstructionDesc[OpConstantSampler].operands.push(OperandLiteralNumber, "'Param'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1826 | InstructionDesc[OpConstantSampler].operands.push(OperandSamplerFilterMode, ""); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1827 | |
| 1828 | InstructionDesc[OpSpecConstant].operands.push(OperandVariableLiterals, "'Value'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1829 | |
| 1830 | InstructionDesc[OpSpecConstantComposite].operands.push(OperandVariableIds, "'Constituents'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1831 | |
| 1832 | InstructionDesc[OpSpecConstantOp].operands.push(OperandLiteralNumber, "'Opcode'"); |
| 1833 | InstructionDesc[OpSpecConstantOp].operands.push(OperandVariableIds, "'Operands'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1834 | |
| 1835 | InstructionDesc[OpVariable].operands.push(OperandStorage, ""); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1836 | InstructionDesc[OpVariable].operands.push(OperandId, "'Initializer'", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1837 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1838 | InstructionDesc[OpFunction].operands.push(OperandFunction, ""); |
| 1839 | InstructionDesc[OpFunction].operands.push(OperandId, "'Function Type'"); |
| 1840 | |
| 1841 | InstructionDesc[OpFunctionCall].operands.push(OperandId, "'Function'"); |
| 1842 | InstructionDesc[OpFunctionCall].operands.push(OperandVariableIds, "'Argument 0', +\n'Argument 1', +\n..."); |
| 1843 | |
| 1844 | InstructionDesc[OpExtInst].operands.push(OperandId, "'Set'"); |
| 1845 | InstructionDesc[OpExtInst].operands.push(OperandLiteralNumber, "'Instruction'"); |
| 1846 | InstructionDesc[OpExtInst].operands.push(OperandVariableIds, "'Operand 1', +\n'Operand 2', +\n..."); |
| 1847 | |
| 1848 | InstructionDesc[OpLoad].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1849 | InstructionDesc[OpLoad].operands.push(OperandMemoryAccess, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1850 | |
| 1851 | InstructionDesc[OpStore].operands.push(OperandId, "'Pointer'"); |
| 1852 | InstructionDesc[OpStore].operands.push(OperandId, "'Object'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1853 | InstructionDesc[OpStore].operands.push(OperandMemoryAccess, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1854 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1855 | InstructionDesc[OpPhi].operands.push(OperandVariableIds, "'Variable, Parent, ...'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1856 | |
| 1857 | InstructionDesc[OpDecorate].operands.push(OperandId, "'Target'"); |
| 1858 | InstructionDesc[OpDecorate].operands.push(OperandDecoration, ""); |
| 1859 | InstructionDesc[OpDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>."); |
| 1860 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1861 | InstructionDesc[OpMemberDecorate].operands.push(OperandId, "'Structure Type'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1862 | InstructionDesc[OpMemberDecorate].operands.push(OperandLiteralNumber, "'Member'"); |
| 1863 | InstructionDesc[OpMemberDecorate].operands.push(OperandDecoration, ""); |
| 1864 | InstructionDesc[OpMemberDecorate].operands.push(OperandVariableLiterals, "See <<Decoration,'Decoration'>>."); |
| 1865 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1866 | InstructionDesc[OpGroupDecorate].operands.push(OperandId, "'Decoration Group'"); |
| 1867 | InstructionDesc[OpGroupDecorate].operands.push(OperandVariableIds, "'Targets'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1868 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1869 | InstructionDesc[OpGroupMemberDecorate].operands.push(OperandId, "'Decoration Group'"); |
| 1870 | InstructionDesc[OpGroupMemberDecorate].operands.push(OperandVariableIdLiteral, "'Targets'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1871 | |
| 1872 | InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Vector'"); |
| 1873 | InstructionDesc[OpVectorExtractDynamic].operands.push(OperandId, "'Index'"); |
| 1874 | |
| 1875 | InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Vector'"); |
| 1876 | InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Component'"); |
| 1877 | InstructionDesc[OpVectorInsertDynamic].operands.push(OperandId, "'Index'"); |
| 1878 | |
| 1879 | InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 1'"); |
| 1880 | InstructionDesc[OpVectorShuffle].operands.push(OperandId, "'Vector 2'"); |
| 1881 | InstructionDesc[OpVectorShuffle].operands.push(OperandVariableLiterals, "'Components'"); |
| 1882 | |
| 1883 | InstructionDesc[OpCompositeConstruct].operands.push(OperandVariableIds, "'Constituents'"); |
| 1884 | |
| 1885 | InstructionDesc[OpCompositeExtract].operands.push(OperandId, "'Composite'"); |
| 1886 | InstructionDesc[OpCompositeExtract].operands.push(OperandVariableLiterals, "'Indexes'"); |
| 1887 | |
| 1888 | InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Object'"); |
| 1889 | InstructionDesc[OpCompositeInsert].operands.push(OperandId, "'Composite'"); |
| 1890 | InstructionDesc[OpCompositeInsert].operands.push(OperandVariableLiterals, "'Indexes'"); |
| 1891 | |
| 1892 | InstructionDesc[OpCopyObject].operands.push(OperandId, "'Operand'"); |
| 1893 | |
| 1894 | InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Target'"); |
| 1895 | InstructionDesc[OpCopyMemory].operands.push(OperandId, "'Source'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1896 | InstructionDesc[OpCopyMemory].operands.push(OperandMemoryAccess, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1897 | |
| 1898 | InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Target'"); |
| 1899 | InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Source'"); |
| 1900 | InstructionDesc[OpCopyMemorySized].operands.push(OperandId, "'Size'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1901 | InstructionDesc[OpCopyMemorySized].operands.push(OperandMemoryAccess, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1902 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1903 | InstructionDesc[OpCopyMemorySized].capabilities.push_back(CapabilityAddresses); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1904 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1905 | InstructionDesc[OpSampledImage].operands.push(OperandId, "'Image'"); |
| 1906 | InstructionDesc[OpSampledImage].operands.push(OperandId, "'Sampler'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1907 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1908 | InstructionDesc[OpImage].operands.push(OperandId, "'Sampled Image'"); |
| 1909 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1910 | InstructionDesc[OpImageRead].operands.push(OperandId, "'Image'"); |
| 1911 | InstructionDesc[OpImageRead].operands.push(OperandId, "'Coordinate'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1912 | InstructionDesc[OpImageRead].operands.push(OperandImageOperands, "", true); |
| 1913 | InstructionDesc[OpImageRead].operands.push(OperandVariableIds, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1914 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1915 | InstructionDesc[OpImageWrite].operands.push(OperandId, "'Image'"); |
| 1916 | InstructionDesc[OpImageWrite].operands.push(OperandId, "'Coordinate'"); |
| 1917 | InstructionDesc[OpImageWrite].operands.push(OperandId, "'Texel'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1918 | InstructionDesc[OpImageWrite].operands.push(OperandImageOperands, "", true); |
| 1919 | InstructionDesc[OpImageWrite].operands.push(OperandVariableIds, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1920 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1921 | InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1922 | InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandId, "'Coordinate'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1923 | InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandImageOperands, "", true); |
| 1924 | InstructionDesc[OpImageSampleImplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1925 | InstructionDesc[OpImageSampleImplicitLod].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1926 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1927 | InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1928 | InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandId, "'Coordinate'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1929 | InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandImageOperands, "", true); |
| 1930 | InstructionDesc[OpImageSampleExplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1931 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1932 | InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1933 | InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 1934 | InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1935 | InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true); |
| 1936 | InstructionDesc[OpImageSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1937 | InstructionDesc[OpImageSampleDrefImplicitLod].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1938 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1939 | InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1940 | InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 1941 | InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1942 | InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true); |
| 1943 | InstructionDesc[OpImageSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1944 | InstructionDesc[OpImageSampleDrefExplicitLod].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1945 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1946 | InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1947 | InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1948 | InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandImageOperands, "", true); |
| 1949 | InstructionDesc[OpImageSampleProjImplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1950 | InstructionDesc[OpImageSampleProjImplicitLod].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1951 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1952 | InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1953 | InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1954 | InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandImageOperands, "", true); |
| 1955 | InstructionDesc[OpImageSampleProjExplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1956 | InstructionDesc[OpImageSampleProjExplicitLod].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1957 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1958 | InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1959 | InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 1960 | InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1961 | InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true); |
| 1962 | InstructionDesc[OpImageSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1963 | InstructionDesc[OpImageSampleProjDrefImplicitLod].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1964 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1965 | InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1966 | InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 1967 | InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1968 | InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true); |
| 1969 | InstructionDesc[OpImageSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1970 | InstructionDesc[OpImageSampleProjDrefExplicitLod].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1971 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1972 | InstructionDesc[OpImageFetch].operands.push(OperandId, "'Image'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1973 | InstructionDesc[OpImageFetch].operands.push(OperandId, "'Coordinate'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1974 | InstructionDesc[OpImageFetch].operands.push(OperandImageOperands, "", true); |
| 1975 | InstructionDesc[OpImageFetch].operands.push(OperandVariableIds, "", true); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1976 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1977 | InstructionDesc[OpImageGather].operands.push(OperandId, "'Sampled Image'"); |
| 1978 | InstructionDesc[OpImageGather].operands.push(OperandId, "'Coordinate'"); |
| 1979 | InstructionDesc[OpImageGather].operands.push(OperandId, "'Component'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1980 | InstructionDesc[OpImageGather].operands.push(OperandImageOperands, "", true); |
| 1981 | InstructionDesc[OpImageGather].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1982 | InstructionDesc[OpImageGather].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1983 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1984 | InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Sampled Image'"); |
| 1985 | InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'Coordinate'"); |
| 1986 | InstructionDesc[OpImageDrefGather].operands.push(OperandId, "'D~ref~'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1987 | InstructionDesc[OpImageDrefGather].operands.push(OperandImageOperands, "", true); |
| 1988 | InstructionDesc[OpImageDrefGather].operands.push(OperandVariableIds, "", true); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 1989 | InstructionDesc[OpImageDrefGather].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 1990 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 1991 | InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1992 | InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 1993 | InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandImageOperands, "", true); |
| 1994 | InstructionDesc[OpImageSparseSampleImplicitLod].operands.push(OperandVariableIds, "", true); |
| 1995 | InstructionDesc[OpImageSparseSampleImplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 1996 | |
| 1997 | InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 1998 | InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 1999 | InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandImageOperands, "", true); |
| 2000 | InstructionDesc[OpImageSparseSampleExplicitLod].operands.push(OperandVariableIds, "", true); |
| 2001 | InstructionDesc[OpImageSparseSampleExplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 2002 | |
| 2003 | InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 2004 | InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 2005 | InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandId, "'D~ref~'"); |
| 2006 | InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandImageOperands, "", true); |
| 2007 | InstructionDesc[OpImageSparseSampleDrefImplicitLod].operands.push(OperandVariableIds, "", true); |
| 2008 | InstructionDesc[OpImageSparseSampleDrefImplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 2009 | |
| 2010 | InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 2011 | InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 2012 | InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandId, "'D~ref~'"); |
| 2013 | InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandImageOperands, "", true); |
| 2014 | InstructionDesc[OpImageSparseSampleDrefExplicitLod].operands.push(OperandVariableIds, "", true); |
| 2015 | InstructionDesc[OpImageSparseSampleDrefExplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 2016 | |
| 2017 | InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 2018 | InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 2019 | InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandImageOperands, "", true); |
| 2020 | InstructionDesc[OpImageSparseSampleProjImplicitLod].operands.push(OperandVariableIds, "", true); |
| 2021 | InstructionDesc[OpImageSparseSampleProjImplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 2022 | |
| 2023 | InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 2024 | InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 2025 | InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandImageOperands, "", true); |
| 2026 | InstructionDesc[OpImageSparseSampleProjExplicitLod].operands.push(OperandVariableIds, "", true); |
| 2027 | InstructionDesc[OpImageSparseSampleProjExplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 2028 | |
| 2029 | InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 2030 | InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 2031 | InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandId, "'D~ref~'"); |
| 2032 | InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandImageOperands, "", true); |
| 2033 | InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].operands.push(OperandVariableIds, "", true); |
| 2034 | InstructionDesc[OpImageSparseSampleProjDrefImplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 2035 | |
| 2036 | InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Sampled Image'"); |
| 2037 | InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'Coordinate'"); |
| 2038 | InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandId, "'D~ref~'"); |
| 2039 | InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandImageOperands, "", true); |
| 2040 | InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].operands.push(OperandVariableIds, "", true); |
| 2041 | InstructionDesc[OpImageSparseSampleProjDrefExplicitLod].capabilities.push_back(CapabilitySparseResidency); |
| 2042 | |
| 2043 | InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Image'"); |
| 2044 | InstructionDesc[OpImageSparseFetch].operands.push(OperandId, "'Coordinate'"); |
| 2045 | InstructionDesc[OpImageSparseFetch].operands.push(OperandImageOperands, "", true); |
| 2046 | InstructionDesc[OpImageSparseFetch].operands.push(OperandVariableIds, "", true); |
| 2047 | InstructionDesc[OpImageSparseFetch].capabilities.push_back(CapabilitySparseResidency); |
| 2048 | |
| 2049 | InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Sampled Image'"); |
| 2050 | InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Coordinate'"); |
| 2051 | InstructionDesc[OpImageSparseGather].operands.push(OperandId, "'Component'"); |
| 2052 | InstructionDesc[OpImageSparseGather].operands.push(OperandImageOperands, "", true); |
| 2053 | InstructionDesc[OpImageSparseGather].operands.push(OperandVariableIds, "", true); |
| 2054 | InstructionDesc[OpImageSparseGather].capabilities.push_back(CapabilitySparseResidency); |
| 2055 | |
| 2056 | InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Sampled Image'"); |
| 2057 | InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'Coordinate'"); |
| 2058 | InstructionDesc[OpImageSparseDrefGather].operands.push(OperandId, "'D~ref~'"); |
| 2059 | InstructionDesc[OpImageSparseDrefGather].operands.push(OperandImageOperands, "", true); |
| 2060 | InstructionDesc[OpImageSparseDrefGather].operands.push(OperandVariableIds, "", true); |
| 2061 | InstructionDesc[OpImageSparseDrefGather].capabilities.push_back(CapabilitySparseResidency); |
| 2062 | |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 2063 | InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Image'"); |
| 2064 | InstructionDesc[OpImageSparseRead].operands.push(OperandId, "'Coordinate'"); |
| 2065 | InstructionDesc[OpImageSparseRead].operands.push(OperandImageOperands, "", true); |
| 2066 | InstructionDesc[OpImageSparseRead].operands.push(OperandVariableIds, "", true); |
| 2067 | InstructionDesc[OpImageSparseRead].capabilities.push_back(CapabilitySparseResidency); |
| 2068 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2069 | InstructionDesc[OpImageSparseTexelsResident].operands.push(OperandId, "'Resident Code'"); |
| 2070 | InstructionDesc[OpImageSparseTexelsResident].capabilities.push_back(CapabilitySparseResidency); |
| 2071 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2072 | InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Image'"); |
| 2073 | InstructionDesc[OpImageQuerySizeLod].operands.push(OperandId, "'Level of Detail'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2074 | InstructionDesc[OpImageQuerySizeLod].capabilities.push_back(CapabilityKernel); |
| 2075 | InstructionDesc[OpImageQuerySizeLod].capabilities.push_back(CapabilityImageQuery); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2076 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2077 | InstructionDesc[OpImageQuerySize].operands.push(OperandId, "'Image'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2078 | InstructionDesc[OpImageQuerySize].capabilities.push_back(CapabilityKernel); |
| 2079 | InstructionDesc[OpImageQuerySize].capabilities.push_back(CapabilityImageQuery); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2080 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2081 | InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Image'"); |
| 2082 | InstructionDesc[OpImageQueryLod].operands.push(OperandId, "'Coordinate'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2083 | InstructionDesc[OpImageQueryLod].capabilities.push_back(CapabilityImageQuery); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2084 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2085 | InstructionDesc[OpImageQueryLevels].operands.push(OperandId, "'Image'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2086 | InstructionDesc[OpImageQueryLevels].capabilities.push_back(CapabilityKernel); |
| 2087 | InstructionDesc[OpImageQueryLevels].capabilities.push_back(CapabilityImageQuery); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2088 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2089 | InstructionDesc[OpImageQuerySamples].operands.push(OperandId, "'Image'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2090 | InstructionDesc[OpImageQuerySamples].capabilities.push_back(CapabilityKernel); |
| 2091 | InstructionDesc[OpImageQuerySamples].capabilities.push_back(CapabilityImageQuery); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2092 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2093 | InstructionDesc[OpImageQueryFormat].operands.push(OperandId, "'Image'"); |
| 2094 | InstructionDesc[OpImageQueryFormat].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2095 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2096 | InstructionDesc[OpImageQueryOrder].operands.push(OperandId, "'Image'"); |
| 2097 | InstructionDesc[OpImageQueryOrder].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2098 | |
| 2099 | InstructionDesc[OpAccessChain].operands.push(OperandId, "'Base'"); |
| 2100 | InstructionDesc[OpAccessChain].operands.push(OperandVariableIds, "'Indexes'"); |
| 2101 | |
| 2102 | InstructionDesc[OpInBoundsAccessChain].operands.push(OperandId, "'Base'"); |
| 2103 | InstructionDesc[OpInBoundsAccessChain].operands.push(OperandVariableIds, "'Indexes'"); |
| 2104 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2105 | InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Base'"); |
| 2106 | InstructionDesc[OpPtrAccessChain].operands.push(OperandId, "'Element'"); |
| 2107 | InstructionDesc[OpPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'"); |
| 2108 | InstructionDesc[OpPtrAccessChain].capabilities.push_back(CapabilityAddresses); |
| 2109 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2110 | InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Base'"); |
| 2111 | InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandId, "'Element'"); |
| 2112 | InstructionDesc[OpInBoundsPtrAccessChain].operands.push(OperandVariableIds, "'Indexes'"); |
| 2113 | InstructionDesc[OpInBoundsPtrAccessChain].capabilities.push_back(CapabilityAddresses); |
| 2114 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2115 | InstructionDesc[OpSNegate].operands.push(OperandId, "'Operand'"); |
| 2116 | |
| 2117 | InstructionDesc[OpFNegate].operands.push(OperandId, "'Operand'"); |
| 2118 | |
| 2119 | InstructionDesc[OpNot].operands.push(OperandId, "'Operand'"); |
| 2120 | |
| 2121 | InstructionDesc[OpAny].operands.push(OperandId, "'Vector'"); |
| 2122 | |
| 2123 | InstructionDesc[OpAll].operands.push(OperandId, "'Vector'"); |
| 2124 | |
| 2125 | InstructionDesc[OpConvertFToU].operands.push(OperandId, "'Float Value'"); |
| 2126 | |
| 2127 | InstructionDesc[OpConvertFToS].operands.push(OperandId, "'Float Value'"); |
| 2128 | |
| 2129 | InstructionDesc[OpConvertSToF].operands.push(OperandId, "'Signed Value'"); |
| 2130 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2131 | InstructionDesc[OpConvertUToF].operands.push(OperandId, "'Unsigned Value'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2132 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2133 | InstructionDesc[OpUConvert].operands.push(OperandId, "'Unsigned Value'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2134 | |
| 2135 | InstructionDesc[OpSConvert].operands.push(OperandId, "'Signed Value'"); |
| 2136 | |
| 2137 | InstructionDesc[OpFConvert].operands.push(OperandId, "'Float Value'"); |
| 2138 | |
| 2139 | InstructionDesc[OpSatConvertSToU].operands.push(OperandId, "'Signed Value'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2140 | InstructionDesc[OpSatConvertSToU].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2141 | |
| 2142 | InstructionDesc[OpSatConvertUToS].operands.push(OperandId, "'Unsigned Value'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2143 | InstructionDesc[OpSatConvertUToS].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2144 | |
| 2145 | InstructionDesc[OpConvertPtrToU].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2146 | InstructionDesc[OpConvertPtrToU].capabilities.push_back(CapabilityAddresses); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2147 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2148 | InstructionDesc[OpConvertUToPtr].operands.push(OperandId, "'Integer Value'"); |
| 2149 | InstructionDesc[OpConvertUToPtr].capabilities.push_back(CapabilityAddresses); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2150 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2151 | InstructionDesc[OpPtrCastToGeneric].operands.push(OperandId, "'Pointer'"); |
| 2152 | InstructionDesc[OpPtrCastToGeneric].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2153 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2154 | InstructionDesc[OpGenericCastToPtr].operands.push(OperandId, "'Pointer'"); |
| 2155 | InstructionDesc[OpGenericCastToPtr].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2156 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2157 | InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandId, "'Pointer'"); |
| 2158 | InstructionDesc[OpGenericCastToPtrExplicit].operands.push(OperandStorage, "'Storage'"); |
| 2159 | InstructionDesc[OpGenericCastToPtrExplicit].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2160 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2161 | InstructionDesc[OpGenericPtrMemSemantics].operands.push(OperandId, "'Pointer'"); |
| 2162 | InstructionDesc[OpGenericPtrMemSemantics].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2163 | |
| 2164 | InstructionDesc[OpBitcast].operands.push(OperandId, "'Operand'"); |
| 2165 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2166 | InstructionDesc[OpQuantizeToF16].operands.push(OperandId, "'Value'"); |
| 2167 | |
| 2168 | InstructionDesc[OpTranspose].capabilities.push_back(CapabilityMatrix); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2169 | InstructionDesc[OpTranspose].operands.push(OperandId, "'Matrix'"); |
| 2170 | |
| 2171 | InstructionDesc[OpIsNan].operands.push(OperandId, "'x'"); |
| 2172 | |
| 2173 | InstructionDesc[OpIsInf].operands.push(OperandId, "'x'"); |
| 2174 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2175 | InstructionDesc[OpIsFinite].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2176 | InstructionDesc[OpIsFinite].operands.push(OperandId, "'x'"); |
| 2177 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2178 | InstructionDesc[OpIsNormal].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2179 | InstructionDesc[OpIsNormal].operands.push(OperandId, "'x'"); |
| 2180 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2181 | InstructionDesc[OpSignBitSet].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2182 | InstructionDesc[OpSignBitSet].operands.push(OperandId, "'x'"); |
| 2183 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2184 | InstructionDesc[OpLessOrGreater].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2185 | InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'x'"); |
| 2186 | InstructionDesc[OpLessOrGreater].operands.push(OperandId, "'y'"); |
| 2187 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2188 | InstructionDesc[OpOrdered].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2189 | InstructionDesc[OpOrdered].operands.push(OperandId, "'x'"); |
| 2190 | InstructionDesc[OpOrdered].operands.push(OperandId, "'y'"); |
| 2191 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2192 | InstructionDesc[OpUnordered].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2193 | InstructionDesc[OpUnordered].operands.push(OperandId, "'x'"); |
| 2194 | InstructionDesc[OpUnordered].operands.push(OperandId, "'y'"); |
| 2195 | |
| 2196 | InstructionDesc[OpArrayLength].operands.push(OperandId, "'Structure'"); |
| 2197 | InstructionDesc[OpArrayLength].operands.push(OperandLiteralNumber, "'Array member'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2198 | InstructionDesc[OpArrayLength].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2199 | |
| 2200 | InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 1'"); |
| 2201 | InstructionDesc[OpIAdd].operands.push(OperandId, "'Operand 2'"); |
| 2202 | |
| 2203 | InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 1'"); |
| 2204 | InstructionDesc[OpFAdd].operands.push(OperandId, "'Operand 2'"); |
| 2205 | |
| 2206 | InstructionDesc[OpISub].operands.push(OperandId, "'Operand 1'"); |
| 2207 | InstructionDesc[OpISub].operands.push(OperandId, "'Operand 2'"); |
| 2208 | |
| 2209 | InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 1'"); |
| 2210 | InstructionDesc[OpFSub].operands.push(OperandId, "'Operand 2'"); |
| 2211 | |
| 2212 | InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 1'"); |
| 2213 | InstructionDesc[OpIMul].operands.push(OperandId, "'Operand 2'"); |
| 2214 | |
| 2215 | InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 1'"); |
| 2216 | InstructionDesc[OpFMul].operands.push(OperandId, "'Operand 2'"); |
| 2217 | |
| 2218 | InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 1'"); |
| 2219 | InstructionDesc[OpUDiv].operands.push(OperandId, "'Operand 2'"); |
| 2220 | |
| 2221 | InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 1'"); |
| 2222 | InstructionDesc[OpSDiv].operands.push(OperandId, "'Operand 2'"); |
| 2223 | |
| 2224 | InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 1'"); |
| 2225 | InstructionDesc[OpFDiv].operands.push(OperandId, "'Operand 2'"); |
| 2226 | |
| 2227 | InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 1'"); |
| 2228 | InstructionDesc[OpUMod].operands.push(OperandId, "'Operand 2'"); |
| 2229 | |
| 2230 | InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 1'"); |
| 2231 | InstructionDesc[OpSRem].operands.push(OperandId, "'Operand 2'"); |
| 2232 | |
| 2233 | InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 1'"); |
| 2234 | InstructionDesc[OpSMod].operands.push(OperandId, "'Operand 2'"); |
| 2235 | |
| 2236 | InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 1'"); |
| 2237 | InstructionDesc[OpFRem].operands.push(OperandId, "'Operand 2'"); |
| 2238 | |
| 2239 | InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 1'"); |
| 2240 | InstructionDesc[OpFMod].operands.push(OperandId, "'Operand 2'"); |
| 2241 | |
| 2242 | InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Vector'"); |
| 2243 | InstructionDesc[OpVectorTimesScalar].operands.push(OperandId, "'Scalar'"); |
| 2244 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2245 | InstructionDesc[OpMatrixTimesScalar].capabilities.push_back(CapabilityMatrix); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2246 | InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Matrix'"); |
| 2247 | InstructionDesc[OpMatrixTimesScalar].operands.push(OperandId, "'Scalar'"); |
| 2248 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2249 | InstructionDesc[OpVectorTimesMatrix].capabilities.push_back(CapabilityMatrix); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2250 | InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Vector'"); |
| 2251 | InstructionDesc[OpVectorTimesMatrix].operands.push(OperandId, "'Matrix'"); |
| 2252 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2253 | InstructionDesc[OpMatrixTimesVector].capabilities.push_back(CapabilityMatrix); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2254 | InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Matrix'"); |
| 2255 | InstructionDesc[OpMatrixTimesVector].operands.push(OperandId, "'Vector'"); |
| 2256 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2257 | InstructionDesc[OpMatrixTimesMatrix].capabilities.push_back(CapabilityMatrix); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2258 | InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'LeftMatrix'"); |
| 2259 | InstructionDesc[OpMatrixTimesMatrix].operands.push(OperandId, "'RightMatrix'"); |
| 2260 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2261 | InstructionDesc[OpOuterProduct].capabilities.push_back(CapabilityMatrix); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2262 | InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 1'"); |
| 2263 | InstructionDesc[OpOuterProduct].operands.push(OperandId, "'Vector 2'"); |
| 2264 | |
| 2265 | InstructionDesc[OpDot].operands.push(OperandId, "'Vector 1'"); |
| 2266 | InstructionDesc[OpDot].operands.push(OperandId, "'Vector 2'"); |
| 2267 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2268 | InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 1'"); |
| 2269 | InstructionDesc[OpIAddCarry].operands.push(OperandId, "'Operand 2'"); |
| 2270 | |
| 2271 | InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 1'"); |
| 2272 | InstructionDesc[OpISubBorrow].operands.push(OperandId, "'Operand 2'"); |
| 2273 | |
| 2274 | InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 1'"); |
| 2275 | InstructionDesc[OpUMulExtended].operands.push(OperandId, "'Operand 2'"); |
| 2276 | |
| 2277 | InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 1'"); |
| 2278 | InstructionDesc[OpSMulExtended].operands.push(OperandId, "'Operand 2'"); |
| 2279 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2280 | InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Base'"); |
| 2281 | InstructionDesc[OpShiftRightLogical].operands.push(OperandId, "'Shift'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2282 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2283 | InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Base'"); |
| 2284 | InstructionDesc[OpShiftRightArithmetic].operands.push(OperandId, "'Shift'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2285 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2286 | InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Base'"); |
| 2287 | InstructionDesc[OpShiftLeftLogical].operands.push(OperandId, "'Shift'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2288 | |
| 2289 | InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 1'"); |
| 2290 | InstructionDesc[OpLogicalOr].operands.push(OperandId, "'Operand 2'"); |
| 2291 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2292 | InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 1'"); |
| 2293 | InstructionDesc[OpLogicalAnd].operands.push(OperandId, "'Operand 2'"); |
| 2294 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2295 | InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 1'"); |
| 2296 | InstructionDesc[OpLogicalEqual].operands.push(OperandId, "'Operand 2'"); |
| 2297 | |
| 2298 | InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 1'"); |
| 2299 | InstructionDesc[OpLogicalNotEqual].operands.push(OperandId, "'Operand 2'"); |
| 2300 | |
| 2301 | InstructionDesc[OpLogicalNot].operands.push(OperandId, "'Operand'"); |
| 2302 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2303 | InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 1'"); |
| 2304 | InstructionDesc[OpBitwiseOr].operands.push(OperandId, "'Operand 2'"); |
| 2305 | |
| 2306 | InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 1'"); |
| 2307 | InstructionDesc[OpBitwiseXor].operands.push(OperandId, "'Operand 2'"); |
| 2308 | |
| 2309 | InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 1'"); |
| 2310 | InstructionDesc[OpBitwiseAnd].operands.push(OperandId, "'Operand 2'"); |
| 2311 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2312 | InstructionDesc[OpBitFieldInsert].capabilities.push_back(CapabilityShader); |
| 2313 | InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Base'"); |
| 2314 | InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Insert'"); |
| 2315 | InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Offset'"); |
| 2316 | InstructionDesc[OpBitFieldInsert].operands.push(OperandId, "'Count'"); |
| 2317 | |
| 2318 | InstructionDesc[OpBitFieldSExtract].capabilities.push_back(CapabilityShader); |
| 2319 | InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Base'"); |
| 2320 | InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Offset'"); |
| 2321 | InstructionDesc[OpBitFieldSExtract].operands.push(OperandId, "'Count'"); |
| 2322 | |
| 2323 | InstructionDesc[OpBitFieldUExtract].capabilities.push_back(CapabilityShader); |
| 2324 | InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Base'"); |
| 2325 | InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Offset'"); |
| 2326 | InstructionDesc[OpBitFieldUExtract].operands.push(OperandId, "'Count'"); |
| 2327 | |
| 2328 | InstructionDesc[OpBitReverse].capabilities.push_back(CapabilityShader); |
| 2329 | InstructionDesc[OpBitReverse].operands.push(OperandId, "'Base'"); |
| 2330 | |
| 2331 | InstructionDesc[OpBitCount].operands.push(OperandId, "'Base'"); |
| 2332 | |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2333 | InstructionDesc[OpSelect].operands.push(OperandId, "'Condition'"); |
| 2334 | InstructionDesc[OpSelect].operands.push(OperandId, "'Object 1'"); |
| 2335 | InstructionDesc[OpSelect].operands.push(OperandId, "'Object 2'"); |
| 2336 | |
| 2337 | InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 1'"); |
| 2338 | InstructionDesc[OpIEqual].operands.push(OperandId, "'Operand 2'"); |
| 2339 | |
| 2340 | InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 1'"); |
| 2341 | InstructionDesc[OpFOrdEqual].operands.push(OperandId, "'Operand 2'"); |
| 2342 | |
| 2343 | InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 1'"); |
| 2344 | InstructionDesc[OpFUnordEqual].operands.push(OperandId, "'Operand 2'"); |
| 2345 | |
| 2346 | InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 1'"); |
| 2347 | InstructionDesc[OpINotEqual].operands.push(OperandId, "'Operand 2'"); |
| 2348 | |
| 2349 | InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 1'"); |
| 2350 | InstructionDesc[OpFOrdNotEqual].operands.push(OperandId, "'Operand 2'"); |
| 2351 | |
| 2352 | InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 1'"); |
| 2353 | InstructionDesc[OpFUnordNotEqual].operands.push(OperandId, "'Operand 2'"); |
| 2354 | |
| 2355 | InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 1'"); |
| 2356 | InstructionDesc[OpULessThan].operands.push(OperandId, "'Operand 2'"); |
| 2357 | |
| 2358 | InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 1'"); |
| 2359 | InstructionDesc[OpSLessThan].operands.push(OperandId, "'Operand 2'"); |
| 2360 | |
| 2361 | InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 1'"); |
| 2362 | InstructionDesc[OpFOrdLessThan].operands.push(OperandId, "'Operand 2'"); |
| 2363 | |
| 2364 | InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 1'"); |
| 2365 | InstructionDesc[OpFUnordLessThan].operands.push(OperandId, "'Operand 2'"); |
| 2366 | |
| 2367 | InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 1'"); |
| 2368 | InstructionDesc[OpUGreaterThan].operands.push(OperandId, "'Operand 2'"); |
| 2369 | |
| 2370 | InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 1'"); |
| 2371 | InstructionDesc[OpSGreaterThan].operands.push(OperandId, "'Operand 2'"); |
| 2372 | |
| 2373 | InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 1'"); |
| 2374 | InstructionDesc[OpFOrdGreaterThan].operands.push(OperandId, "'Operand 2'"); |
| 2375 | |
| 2376 | InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 1'"); |
| 2377 | InstructionDesc[OpFUnordGreaterThan].operands.push(OperandId, "'Operand 2'"); |
| 2378 | |
| 2379 | InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2380 | InstructionDesc[OpULessThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2381 | |
| 2382 | InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2383 | InstructionDesc[OpSLessThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2384 | |
| 2385 | InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2386 | InstructionDesc[OpFOrdLessThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2387 | |
| 2388 | InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2389 | InstructionDesc[OpFUnordLessThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2390 | |
| 2391 | InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2392 | InstructionDesc[OpUGreaterThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2393 | |
| 2394 | InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2395 | InstructionDesc[OpSGreaterThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2396 | |
| 2397 | InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2398 | InstructionDesc[OpFOrdGreaterThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2399 | |
| 2400 | InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 1'"); |
| 2401 | InstructionDesc[OpFUnordGreaterThanEqual].operands.push(OperandId, "'Operand 2'"); |
| 2402 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2403 | InstructionDesc[OpDPdx].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2404 | InstructionDesc[OpDPdx].operands.push(OperandId, "'P'"); |
| 2405 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2406 | InstructionDesc[OpDPdy].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2407 | InstructionDesc[OpDPdy].operands.push(OperandId, "'P'"); |
| 2408 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2409 | InstructionDesc[OpFwidth].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2410 | InstructionDesc[OpFwidth].operands.push(OperandId, "'P'"); |
| 2411 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2412 | InstructionDesc[OpDPdxFine].capabilities.push_back(CapabilityDerivativeControl); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2413 | InstructionDesc[OpDPdxFine].operands.push(OperandId, "'P'"); |
| 2414 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2415 | InstructionDesc[OpDPdyFine].capabilities.push_back(CapabilityDerivativeControl); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2416 | InstructionDesc[OpDPdyFine].operands.push(OperandId, "'P'"); |
| 2417 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2418 | InstructionDesc[OpFwidthFine].capabilities.push_back(CapabilityDerivativeControl); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2419 | InstructionDesc[OpFwidthFine].operands.push(OperandId, "'P'"); |
| 2420 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2421 | InstructionDesc[OpDPdxCoarse].capabilities.push_back(CapabilityDerivativeControl); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2422 | InstructionDesc[OpDPdxCoarse].operands.push(OperandId, "'P'"); |
| 2423 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2424 | InstructionDesc[OpDPdyCoarse].capabilities.push_back(CapabilityDerivativeControl); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2425 | InstructionDesc[OpDPdyCoarse].operands.push(OperandId, "'P'"); |
| 2426 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2427 | InstructionDesc[OpFwidthCoarse].capabilities.push_back(CapabilityDerivativeControl); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2428 | InstructionDesc[OpFwidthCoarse].operands.push(OperandId, "'P'"); |
| 2429 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2430 | InstructionDesc[OpEmitVertex].capabilities.push_back(CapabilityGeometry); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2431 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2432 | InstructionDesc[OpEndPrimitive].capabilities.push_back(CapabilityGeometry); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2433 | |
| 2434 | InstructionDesc[OpEmitStreamVertex].operands.push(OperandId, "'Stream'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2435 | InstructionDesc[OpEmitStreamVertex].capabilities.push_back(CapabilityGeometryStreams); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2436 | |
| 2437 | InstructionDesc[OpEndStreamPrimitive].operands.push(OperandId, "'Stream'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2438 | InstructionDesc[OpEndStreamPrimitive].capabilities.push_back(CapabilityGeometryStreams); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2439 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2440 | InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Execution'"); |
| 2441 | InstructionDesc[OpControlBarrier].operands.push(OperandScope, "'Memory'"); |
| 2442 | InstructionDesc[OpControlBarrier].operands.push(OperandMemorySemantics, "'Semantics'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2443 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2444 | InstructionDesc[OpMemoryBarrier].operands.push(OperandScope, "'Memory'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2445 | InstructionDesc[OpMemoryBarrier].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2446 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2447 | InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Image'"); |
| 2448 | InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Coordinate'"); |
| 2449 | InstructionDesc[OpImageTexelPointer].operands.push(OperandId, "'Sample'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2450 | |
| 2451 | InstructionDesc[OpAtomicLoad].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2452 | InstructionDesc[OpAtomicLoad].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2453 | InstructionDesc[OpAtomicLoad].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2454 | |
| 2455 | InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2456 | InstructionDesc[OpAtomicStore].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2457 | InstructionDesc[OpAtomicStore].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2458 | InstructionDesc[OpAtomicStore].operands.push(OperandId, "'Value'"); |
| 2459 | |
| 2460 | InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2461 | InstructionDesc[OpAtomicExchange].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2462 | InstructionDesc[OpAtomicExchange].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2463 | InstructionDesc[OpAtomicExchange].operands.push(OperandId, "'Value'"); |
| 2464 | |
| 2465 | InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2466 | InstructionDesc[OpAtomicCompareExchange].operands.push(OperandScope, "'Scope'"); |
| 2467 | InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Equal'"); |
| 2468 | InstructionDesc[OpAtomicCompareExchange].operands.push(OperandMemorySemantics, "'Unequal'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2469 | InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Value'"); |
| 2470 | InstructionDesc[OpAtomicCompareExchange].operands.push(OperandId, "'Comparator'"); |
| 2471 | |
| 2472 | InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2473 | InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandScope, "'Scope'"); |
| 2474 | InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Equal'"); |
| 2475 | InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandMemorySemantics, "'Unequal'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2476 | InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Value'"); |
| 2477 | InstructionDesc[OpAtomicCompareExchangeWeak].operands.push(OperandId, "'Comparator'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2478 | InstructionDesc[OpAtomicCompareExchangeWeak].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2479 | |
| 2480 | InstructionDesc[OpAtomicIIncrement].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2481 | InstructionDesc[OpAtomicIIncrement].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2482 | InstructionDesc[OpAtomicIIncrement].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2483 | |
| 2484 | InstructionDesc[OpAtomicIDecrement].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2485 | InstructionDesc[OpAtomicIDecrement].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2486 | InstructionDesc[OpAtomicIDecrement].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2487 | |
| 2488 | InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2489 | InstructionDesc[OpAtomicIAdd].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2490 | InstructionDesc[OpAtomicIAdd].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2491 | InstructionDesc[OpAtomicIAdd].operands.push(OperandId, "'Value'"); |
| 2492 | |
| 2493 | InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2494 | InstructionDesc[OpAtomicISub].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2495 | InstructionDesc[OpAtomicISub].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2496 | InstructionDesc[OpAtomicISub].operands.push(OperandId, "'Value'"); |
| 2497 | |
| 2498 | InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2499 | InstructionDesc[OpAtomicUMin].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2500 | InstructionDesc[OpAtomicUMin].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2501 | InstructionDesc[OpAtomicUMin].operands.push(OperandId, "'Value'"); |
| 2502 | |
| 2503 | InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2504 | InstructionDesc[OpAtomicUMax].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2505 | InstructionDesc[OpAtomicUMax].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2506 | InstructionDesc[OpAtomicUMax].operands.push(OperandId, "'Value'"); |
| 2507 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2508 | InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Pointer'"); |
| 2509 | InstructionDesc[OpAtomicSMin].operands.push(OperandScope, "'Scope'"); |
| 2510 | InstructionDesc[OpAtomicSMin].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2511 | InstructionDesc[OpAtomicSMin].operands.push(OperandId, "'Value'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2512 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2513 | InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Pointer'"); |
| 2514 | InstructionDesc[OpAtomicSMax].operands.push(OperandScope, "'Scope'"); |
| 2515 | InstructionDesc[OpAtomicSMax].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2516 | InstructionDesc[OpAtomicSMax].operands.push(OperandId, "'Value'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2517 | |
| 2518 | InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2519 | InstructionDesc[OpAtomicAnd].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2520 | InstructionDesc[OpAtomicAnd].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2521 | InstructionDesc[OpAtomicAnd].operands.push(OperandId, "'Value'"); |
| 2522 | |
| 2523 | InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2524 | InstructionDesc[OpAtomicOr].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2525 | InstructionDesc[OpAtomicOr].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2526 | InstructionDesc[OpAtomicOr].operands.push(OperandId, "'Value'"); |
| 2527 | |
| 2528 | InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2529 | InstructionDesc[OpAtomicXor].operands.push(OperandScope, "'Scope'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2530 | InstructionDesc[OpAtomicXor].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2531 | InstructionDesc[OpAtomicXor].operands.push(OperandId, "'Value'"); |
| 2532 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2533 | InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandId, "'Pointer'"); |
| 2534 | InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandScope, "'Scope'"); |
| 2535 | InstructionDesc[OpAtomicFlagTestAndSet].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2536 | InstructionDesc[OpAtomicFlagTestAndSet].capabilities.push_back(CapabilityKernel); |
| 2537 | |
| 2538 | InstructionDesc[OpAtomicFlagClear].operands.push(OperandId, "'Pointer'"); |
| 2539 | InstructionDesc[OpAtomicFlagClear].operands.push(OperandScope, "'Scope'"); |
| 2540 | InstructionDesc[OpAtomicFlagClear].operands.push(OperandMemorySemantics, "'Semantics'"); |
| 2541 | InstructionDesc[OpAtomicFlagClear].capabilities.push_back(CapabilityKernel); |
| 2542 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2543 | InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Merge Block'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2544 | InstructionDesc[OpLoopMerge].operands.push(OperandId, "'Continue Target'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2545 | InstructionDesc[OpLoopMerge].operands.push(OperandLoop, ""); |
| 2546 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2547 | InstructionDesc[OpSelectionMerge].operands.push(OperandId, "'Merge Block'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2548 | InstructionDesc[OpSelectionMerge].operands.push(OperandSelect, ""); |
| 2549 | |
| 2550 | InstructionDesc[OpBranch].operands.push(OperandId, "'Target Label'"); |
| 2551 | |
| 2552 | InstructionDesc[OpBranchConditional].operands.push(OperandId, "'Condition'"); |
| 2553 | InstructionDesc[OpBranchConditional].operands.push(OperandId, "'True Label'"); |
| 2554 | InstructionDesc[OpBranchConditional].operands.push(OperandId, "'False Label'"); |
| 2555 | InstructionDesc[OpBranchConditional].operands.push(OperandVariableLiterals, "'Branch weights'"); |
| 2556 | |
| 2557 | InstructionDesc[OpSwitch].operands.push(OperandId, "'Selector'"); |
| 2558 | InstructionDesc[OpSwitch].operands.push(OperandId, "'Default'"); |
| 2559 | InstructionDesc[OpSwitch].operands.push(OperandVariableLiteralId, "'Target'"); |
| 2560 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2561 | InstructionDesc[OpKill].capabilities.push_back(CapabilityShader); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2562 | |
| 2563 | InstructionDesc[OpReturnValue].operands.push(OperandId, "'Value'"); |
| 2564 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2565 | InstructionDesc[OpLifetimeStart].operands.push(OperandId, "'Pointer'"); |
| 2566 | InstructionDesc[OpLifetimeStart].operands.push(OperandLiteralNumber, "'Size'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2567 | InstructionDesc[OpLifetimeStart].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2568 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2569 | InstructionDesc[OpLifetimeStop].operands.push(OperandId, "'Pointer'"); |
| 2570 | InstructionDesc[OpLifetimeStop].operands.push(OperandLiteralNumber, "'Size'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2571 | InstructionDesc[OpLifetimeStop].capabilities.push_back(CapabilityKernel); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2572 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2573 | InstructionDesc[OpGroupAsyncCopy].capabilities.push_back(CapabilityKernel); |
| 2574 | InstructionDesc[OpGroupAsyncCopy].operands.push(OperandScope, "'Execution'"); |
| 2575 | InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Destination'"); |
| 2576 | InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Source'"); |
| 2577 | InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Num Elements'"); |
| 2578 | InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Stride'"); |
| 2579 | InstructionDesc[OpGroupAsyncCopy].operands.push(OperandId, "'Event'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2580 | |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2581 | InstructionDesc[OpGroupWaitEvents].capabilities.push_back(CapabilityKernel); |
| 2582 | InstructionDesc[OpGroupWaitEvents].operands.push(OperandScope, "'Execution'"); |
| 2583 | InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Num Events'"); |
| 2584 | InstructionDesc[OpGroupWaitEvents].operands.push(OperandId, "'Events List'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2585 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2586 | InstructionDesc[OpGroupAll].capabilities.push_back(CapabilityGroups); |
| 2587 | InstructionDesc[OpGroupAll].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2588 | InstructionDesc[OpGroupAll].operands.push(OperandId, "'Predicate'"); |
| 2589 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2590 | InstructionDesc[OpGroupAny].capabilities.push_back(CapabilityGroups); |
| 2591 | InstructionDesc[OpGroupAny].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2592 | InstructionDesc[OpGroupAny].operands.push(OperandId, "'Predicate'"); |
| 2593 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2594 | InstructionDesc[OpGroupBroadcast].capabilities.push_back(CapabilityGroups); |
| 2595 | InstructionDesc[OpGroupBroadcast].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2596 | InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'Value'"); |
| 2597 | InstructionDesc[OpGroupBroadcast].operands.push(OperandId, "'LocalId'"); |
| 2598 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2599 | InstructionDesc[OpGroupIAdd].capabilities.push_back(CapabilityGroups); |
| 2600 | InstructionDesc[OpGroupIAdd].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2601 | InstructionDesc[OpGroupIAdd].operands.push(OperandGroupOperation, "'Operation'"); |
| 2602 | InstructionDesc[OpGroupIAdd].operands.push(OperandId, "'X'"); |
| 2603 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2604 | InstructionDesc[OpGroupFAdd].capabilities.push_back(CapabilityGroups); |
| 2605 | InstructionDesc[OpGroupFAdd].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2606 | InstructionDesc[OpGroupFAdd].operands.push(OperandGroupOperation, "'Operation'"); |
| 2607 | InstructionDesc[OpGroupFAdd].operands.push(OperandId, "'X'"); |
| 2608 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2609 | InstructionDesc[OpGroupUMin].capabilities.push_back(CapabilityGroups); |
| 2610 | InstructionDesc[OpGroupUMin].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2611 | InstructionDesc[OpGroupUMin].operands.push(OperandGroupOperation, "'Operation'"); |
| 2612 | InstructionDesc[OpGroupUMin].operands.push(OperandId, "'X'"); |
| 2613 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2614 | InstructionDesc[OpGroupSMin].capabilities.push_back(CapabilityGroups); |
| 2615 | InstructionDesc[OpGroupSMin].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2616 | InstructionDesc[OpGroupSMin].operands.push(OperandGroupOperation, "'Operation'"); |
| 2617 | InstructionDesc[OpGroupSMin].operands.push(OperandId, "X"); |
| 2618 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2619 | InstructionDesc[OpGroupFMin].capabilities.push_back(CapabilityGroups); |
| 2620 | InstructionDesc[OpGroupFMin].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2621 | InstructionDesc[OpGroupFMin].operands.push(OperandGroupOperation, "'Operation'"); |
| 2622 | InstructionDesc[OpGroupFMin].operands.push(OperandId, "X"); |
| 2623 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2624 | InstructionDesc[OpGroupUMax].capabilities.push_back(CapabilityGroups); |
| 2625 | InstructionDesc[OpGroupUMax].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2626 | InstructionDesc[OpGroupUMax].operands.push(OperandGroupOperation, "'Operation'"); |
| 2627 | InstructionDesc[OpGroupUMax].operands.push(OperandId, "X"); |
| 2628 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2629 | InstructionDesc[OpGroupSMax].capabilities.push_back(CapabilityGroups); |
| 2630 | InstructionDesc[OpGroupSMax].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2631 | InstructionDesc[OpGroupSMax].operands.push(OperandGroupOperation, "'Operation'"); |
| 2632 | InstructionDesc[OpGroupSMax].operands.push(OperandId, "X"); |
| 2633 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2634 | InstructionDesc[OpGroupFMax].capabilities.push_back(CapabilityGroups); |
| 2635 | InstructionDesc[OpGroupFMax].operands.push(OperandScope, "'Execution'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2636 | InstructionDesc[OpGroupFMax].operands.push(OperandGroupOperation, "'Operation'"); |
| 2637 | InstructionDesc[OpGroupFMax].operands.push(OperandId, "X"); |
| 2638 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2639 | InstructionDesc[OpReadPipe].capabilities.push_back(CapabilityPipes); |
| 2640 | InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pipe'"); |
| 2641 | InstructionDesc[OpReadPipe].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2642 | InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Size'"); |
| 2643 | InstructionDesc[OpReadPipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2644 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2645 | InstructionDesc[OpWritePipe].capabilities.push_back(CapabilityPipes); |
| 2646 | InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pipe'"); |
| 2647 | InstructionDesc[OpWritePipe].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2648 | InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Size'"); |
| 2649 | InstructionDesc[OpWritePipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2650 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2651 | InstructionDesc[OpReservedReadPipe].capabilities.push_back(CapabilityPipes); |
| 2652 | InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pipe'"); |
| 2653 | InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Reserve Id'"); |
| 2654 | InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Index'"); |
| 2655 | InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2656 | InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Size'"); |
| 2657 | InstructionDesc[OpReservedReadPipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2658 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2659 | InstructionDesc[OpReservedWritePipe].capabilities.push_back(CapabilityPipes); |
| 2660 | InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pipe'"); |
| 2661 | InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Reserve Id'"); |
| 2662 | InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Index'"); |
| 2663 | InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Pointer'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2664 | InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Size'"); |
| 2665 | InstructionDesc[OpReservedWritePipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2666 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2667 | InstructionDesc[OpReserveReadPipePackets].capabilities.push_back(CapabilityPipes); |
| 2668 | InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Pipe'"); |
| 2669 | InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Num Packets'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2670 | InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Size'"); |
| 2671 | InstructionDesc[OpReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2672 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2673 | InstructionDesc[OpReserveWritePipePackets].capabilities.push_back(CapabilityPipes); |
| 2674 | InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Pipe'"); |
| 2675 | InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Num Packets'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2676 | InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Size'"); |
| 2677 | InstructionDesc[OpReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2678 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2679 | InstructionDesc[OpCommitReadPipe].capabilities.push_back(CapabilityPipes); |
| 2680 | InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Pipe'"); |
| 2681 | InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Reserve Id'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2682 | InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Size'"); |
| 2683 | InstructionDesc[OpCommitReadPipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2684 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2685 | InstructionDesc[OpCommitWritePipe].capabilities.push_back(CapabilityPipes); |
| 2686 | InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Pipe'"); |
| 2687 | InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Reserve Id'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2688 | InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Size'"); |
| 2689 | InstructionDesc[OpCommitWritePipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2690 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2691 | InstructionDesc[OpIsValidReserveId].capabilities.push_back(CapabilityPipes); |
| 2692 | InstructionDesc[OpIsValidReserveId].operands.push(OperandId, "'Reserve Id'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2693 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2694 | InstructionDesc[OpGetNumPipePackets].capabilities.push_back(CapabilityPipes); |
| 2695 | InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Pipe'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2696 | InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Size'"); |
| 2697 | InstructionDesc[OpGetNumPipePackets].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2698 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2699 | InstructionDesc[OpGetMaxPipePackets].capabilities.push_back(CapabilityPipes); |
| 2700 | InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Pipe'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2701 | InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Size'"); |
| 2702 | InstructionDesc[OpGetMaxPipePackets].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2703 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2704 | InstructionDesc[OpGroupReserveReadPipePackets].capabilities.push_back(CapabilityPipes); |
| 2705 | InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandScope, "'Execution'"); |
| 2706 | InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Pipe'"); |
| 2707 | InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Num Packets'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2708 | InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Size'"); |
| 2709 | InstructionDesc[OpGroupReserveReadPipePackets].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2710 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2711 | InstructionDesc[OpGroupReserveWritePipePackets].capabilities.push_back(CapabilityPipes); |
| 2712 | InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandScope, "'Execution'"); |
| 2713 | InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Pipe'"); |
| 2714 | InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Num Packets'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2715 | InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Size'"); |
| 2716 | InstructionDesc[OpGroupReserveWritePipePackets].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2717 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2718 | InstructionDesc[OpGroupCommitReadPipe].capabilities.push_back(CapabilityPipes); |
| 2719 | InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandScope, "'Execution'"); |
| 2720 | InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Pipe'"); |
| 2721 | InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Reserve Id'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2722 | InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Size'"); |
| 2723 | InstructionDesc[OpGroupCommitReadPipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2724 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2725 | InstructionDesc[OpGroupCommitWritePipe].capabilities.push_back(CapabilityPipes); |
| 2726 | InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandScope, "'Execution'"); |
| 2727 | InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Pipe'"); |
| 2728 | InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Reserve Id'"); |
John Kessenich | 55e7d11 | 2015-11-15 21:33:39 -0700 | [diff] [blame] | 2729 | InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Size'"); |
| 2730 | InstructionDesc[OpGroupCommitWritePipe].operands.push(OperandId, "'Packet Alignment'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2731 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2732 | InstructionDesc[OpBuildNDRange].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2733 | InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkSize'"); |
| 2734 | InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'LocalWorkSize'"); |
| 2735 | InstructionDesc[OpBuildNDRange].operands.push(OperandId, "'GlobalWorkOffset'"); |
| 2736 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2737 | InstructionDesc[OpGetDefaultQueue].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2738 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2739 | InstructionDesc[OpCaptureEventProfilingInfo].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2740 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2741 | InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Event'"); |
| 2742 | InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Profiling Info'"); |
| 2743 | InstructionDesc[OpCaptureEventProfilingInfo].operands.push(OperandId, "'Value'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2744 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2745 | InstructionDesc[OpSetUserEventStatus].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2746 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2747 | InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Event'"); |
| 2748 | InstructionDesc[OpSetUserEventStatus].operands.push(OperandId, "'Status'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2749 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2750 | InstructionDesc[OpIsValidEvent].capabilities.push_back(CapabilityDeviceEnqueue); |
| 2751 | InstructionDesc[OpIsValidEvent].operands.push(OperandId, "'Event'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2752 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2753 | InstructionDesc[OpCreateUserEvent].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2754 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2755 | InstructionDesc[OpRetainEvent].capabilities.push_back(CapabilityDeviceEnqueue); |
| 2756 | InstructionDesc[OpRetainEvent].operands.push(OperandId, "'Event'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2757 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2758 | InstructionDesc[OpReleaseEvent].capabilities.push_back(CapabilityDeviceEnqueue); |
| 2759 | InstructionDesc[OpReleaseEvent].operands.push(OperandId, "'Event'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2760 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2761 | InstructionDesc[OpGetKernelWorkGroupSize].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2762 | InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Invoke'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2763 | InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param'"); |
| 2764 | InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Size'"); |
| 2765 | InstructionDesc[OpGetKernelWorkGroupSize].operands.push(OperandId, "'Param Align'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2766 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2767 | InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2768 | InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Invoke'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2769 | InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param'"); |
| 2770 | InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Size'"); |
| 2771 | InstructionDesc[OpGetKernelPreferredWorkGroupSizeMultiple].operands.push(OperandId, "'Param Align'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2772 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2773 | InstructionDesc[OpGetKernelNDrangeSubGroupCount].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2774 | InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'ND Range'"); |
| 2775 | InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Invoke'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2776 | InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param'"); |
| 2777 | InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Size'"); |
| 2778 | InstructionDesc[OpGetKernelNDrangeSubGroupCount].operands.push(OperandId, "'Param Align'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2779 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2780 | InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].capabilities.push_back(CapabilityDeviceEnqueue); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2781 | InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'ND Range'"); |
| 2782 | InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Invoke'"); |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2783 | InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param'"); |
| 2784 | InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Size'"); |
| 2785 | InstructionDesc[OpGetKernelNDrangeMaxSubGroupSize].operands.push(OperandId, "'Param Align'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2786 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2787 | InstructionDesc[OpEnqueueKernel].capabilities.push_back(CapabilityDeviceEnqueue); |
| 2788 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Queue'"); |
| 2789 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Flags'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2790 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'ND Range'"); |
| 2791 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Num Events'"); |
| 2792 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Wait Events'"); |
| 2793 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Ret Event'"); |
| 2794 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Invoke'"); |
| 2795 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param'"); |
| 2796 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Size'"); |
| 2797 | InstructionDesc[OpEnqueueKernel].operands.push(OperandId, "'Param Align'"); |
| 2798 | InstructionDesc[OpEnqueueKernel].operands.push(OperandVariableIds, "'Local Size'"); |
| 2799 | |
John Kessenich | 5e4b124 | 2015-08-06 22:53:06 -0600 | [diff] [blame] | 2800 | InstructionDesc[OpEnqueueMarker].capabilities.push_back(CapabilityDeviceEnqueue); |
| 2801 | InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Queue'"); |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2802 | InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Num Events'"); |
| 2803 | InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Wait Events'"); |
| 2804 | InstructionDesc[OpEnqueueMarker].operands.push(OperandId, "'Ret Event'"); |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 2805 | |
Rex Xu | 5159664 | 2016-09-21 18:56:12 +0800 | [diff] [blame] | 2806 | InstructionDesc[OpSubgroupBallotKHR].operands.push(OperandId, "'Predicate'"); |
| 2807 | |
| 2808 | InstructionDesc[OpSubgroupFirstInvocationKHR].operands.push(OperandId, "'Value'"); |
| 2809 | |
Ashwin Kolhe | c720f3e | 2017-01-18 14:16:49 -0800 | [diff] [blame] | 2810 | InstructionDesc[OpSubgroupAnyKHR].capabilities.push_back(CapabilitySubgroupVoteKHR); |
| 2811 | InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandScope, "'Execution'"); |
| 2812 | InstructionDesc[OpSubgroupAnyKHR].operands.push(OperandId, "'Predicate'"); |
| 2813 | |
| 2814 | InstructionDesc[OpSubgroupAllKHR].capabilities.push_back(CapabilitySubgroupVoteKHR); |
| 2815 | InstructionDesc[OpSubgroupAllKHR].operands.push(OperandScope, "'Execution'"); |
| 2816 | InstructionDesc[OpSubgroupAllKHR].operands.push(OperandId, "'Predicate'"); |
| 2817 | |
| 2818 | InstructionDesc[OpSubgroupAllEqualKHR].capabilities.push_back(CapabilitySubgroupVoteKHR); |
| 2819 | InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandScope, "'Execution'"); |
| 2820 | InstructionDesc[OpSubgroupAllEqualKHR].operands.push(OperandId, "'Predicate'"); |
| 2821 | |
chaoc | f200da8 | 2016-12-20 12:44:35 -0800 | [diff] [blame] | 2822 | InstructionDesc[OpSubgroupReadInvocationKHR].capabilities.push_back(CapabilityGroups); |
| 2823 | InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Value'"); |
| 2824 | InstructionDesc[OpSubgroupReadInvocationKHR].operands.push(OperandId, "'Index'"); |
| 2825 | |
Rex Xu | 9d93a23 | 2016-05-05 12:30:44 +0800 | [diff] [blame] | 2826 | #ifdef AMD_EXTENSIONS |
| 2827 | InstructionDesc[OpGroupIAddNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2828 | InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2829 | InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2830 | InstructionDesc[OpGroupIAddNonUniformAMD].operands.push(OperandId, "'X'"); |
| 2831 | |
| 2832 | InstructionDesc[OpGroupFAddNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2833 | InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2834 | InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2835 | InstructionDesc[OpGroupFAddNonUniformAMD].operands.push(OperandId, "'X'"); |
| 2836 | |
| 2837 | InstructionDesc[OpGroupUMinNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2838 | InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2839 | InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2840 | InstructionDesc[OpGroupUMinNonUniformAMD].operands.push(OperandId, "'X'"); |
| 2841 | |
| 2842 | InstructionDesc[OpGroupSMinNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2843 | InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2844 | InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2845 | InstructionDesc[OpGroupSMinNonUniformAMD].operands.push(OperandId, "X"); |
| 2846 | |
| 2847 | InstructionDesc[OpGroupFMinNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2848 | InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2849 | InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2850 | InstructionDesc[OpGroupFMinNonUniformAMD].operands.push(OperandId, "X"); |
| 2851 | |
| 2852 | InstructionDesc[OpGroupUMaxNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2853 | InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2854 | InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2855 | InstructionDesc[OpGroupUMaxNonUniformAMD].operands.push(OperandId, "X"); |
| 2856 | |
| 2857 | InstructionDesc[OpGroupSMaxNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2858 | InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2859 | InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2860 | InstructionDesc[OpGroupSMaxNonUniformAMD].operands.push(OperandId, "X"); |
| 2861 | |
| 2862 | InstructionDesc[OpGroupFMaxNonUniformAMD].capabilities.push_back(CapabilityGroups); |
| 2863 | InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandScope, "'Execution'"); |
| 2864 | InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandGroupOperation, "'Operation'"); |
| 2865 | InstructionDesc[OpGroupFMaxNonUniformAMD].operands.push(OperandId, "X"); |
| 2866 | #endif |
John Kessenich | 140f3df | 2015-06-26 16:58:36 -0600 | [diff] [blame] | 2867 | } |
| 2868 | |
| 2869 | }; // end spv namespace |