Module: Mesa
Branch: main
Commit: c735c4ca85e0ed0c87676eb16e2b851a56af31c0
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=c735c4ca85e0ed0c87676eb16e2b851a56af31c0

Author: Lionel Landwerlin <[email protected]>
Date:   Fri Jul 30 14:06:05 2021 +0300

intel/clc: specify supported extensions

Having everything ever known to man is confusing our SPIRV parser.

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13171>

---

 src/intel/compiler/intel_clc.c | 9 +++++++++
 1 file changed, 9 insertions(+)

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 =

Reply via email to