diff options
author | Lionel Landwerlin <lionel.g.landwerlin@intel.com> | 2021-07-30 14:06:05 +0300 |
---|---|---|
committer | Marge Bot <emma+marge@anholt.net> | 2022-03-21 11:26:44 +0000 |
commit | c735c4ca85e0ed0c87676eb16e2b851a56af31c0 (patch) | |
tree | 607d80e17bf50f24929b3d105aa96db2493f6ac7 | |
parent | a29b1d5716ed8dbcf9f6cc23744adbdfe09b2571 (diff) |
intel/clc: specify supported extensions
Having everything ever known to man is confusing our SPIRV parser.
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13171>
-rw-r--r-- | src/intel/compiler/intel_clc.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/intel/compiler/intel_clc.c b/src/intel/compiler/intel_clc.c index 23a97de7ccf..8d8c928ecfa 100644 --- a/src/intel/compiler/intel_clc.c +++ b/src/intel/compiler/intel_clc.c @@ -385,6 +385,14 @@ int main(int argc, char **argv) return 1; } + const char *allowed_spirv_extensions[] = { + "SPV_EXT_shader_atomic_float_add", + "SPV_EXT_shader_atomic_float_min_max", + "SPV_KHR_float_controls", + "SPV_INTEL_subgroups", + NULL, + }; + struct clc_compile_args clc_args = { .source = { .name = *infile, @@ -392,6 +400,7 @@ int main(int argc, char **argv) }, .args = util_dynarray_begin(&clang_args), .num_args = util_dynarray_num_elements(&clang_args, char *), + .allowed_spirv_extensions = allowed_spirv_extensions, }; struct clc_binary *spirv_out = |