diff options
author | Jason Ekstrand <[email protected]> | 2016-06-02 14:06:30 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-06-03 19:29:28 -0700 |
commit | 2e46a5d1551854b98b0ca3c773a17f3ea5d2f7c6 (patch) | |
tree | 32fce550ff5babfaf03c359b95d1bfd5b4776e19 /src/compiler/spirv/spirv_info.h | |
parent | 5a1e56f344c0007f877ada78721c33d4fe61419a (diff) |
nir/spirv: Add string lookup tables for a couple of SPIR-V enums
Signed-off-by: Jason Ekstrand <[email protected]>
Cc: "12.0" <[email protected]>
Diffstat (limited to 'src/compiler/spirv/spirv_info.h')
-rw-r--r-- | src/compiler/spirv/spirv_info.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/compiler/spirv/spirv_info.h b/src/compiler/spirv/spirv_info.h new file mode 100644 index 00000000000..1700001e78c --- /dev/null +++ b/src/compiler/spirv/spirv_info.h @@ -0,0 +1,27 @@ +/* + * Copyright © 2016 Intel Corporation + * + * Permission is hereby granted, free of charge, to any person obtaining a + * copy of this software and associated documentation files (the "Software"), + * to deal in the Software without restriction, including without limitation + * the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the + * Software is furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice (including the next + * paragraph) shall be included in all copies or substantial portions of the + * Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + * IN THE SOFTWARE. + */ + +#include "spirv.h" + +const char *spirv_capability_to_string(SpvCapability cap); +const char *spirv_decoration_to_string(SpvDecoration dec); |