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

Author: Lionel Landwerlin <[email protected]>
Date:   Fri Jul 30 16:25:23 2021 +0300

intel/clc: disable tool prior to Gfx12.5 platforms

This tool is currently only aimed at Gfx version 12.5+ with
COMPUTE_WALKER. We could make it work on earlier platforms but they
require pushing gl_SubgroupInvocation and the CLC code is missing the
back-end compiler set-up bits for that.

v2: Commit description by Jason

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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/intel/compiler/intel_clc.c b/src/intel/compiler/intel_clc.c
index 8d8c928ecfa..0553a73d0e3 100644
--- a/src/intel/compiler/intel_clc.c
+++ b/src/intel/compiler/intel_clc.c
@@ -356,6 +356,11 @@ int main(int argc, char **argv)
       return -1;
    }
 
+   if (devinfo->verx10 < 125) {
+      fprintf(stderr, "Platform currently not supported.\n");
+      return -1;
+   }
+
    if (entry_point == NULL) {
       fprintf(stderr, "No entry-point name specified.\n");
       print_usage(argv[0], stderr);

Reply via email to