From f93ea427b28c25d112ef0bfd4066f329abe36c27 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 11 May 2023 13:51:25 -0400 Subject: [PATCH] intel: Disable shader cache when executing intel_clc during the build With the shader cache enabled, intel_clc attempts to write to ~/.cache. Many distributions' build systems limit file-system access, and will kill the process thus causing the build to fail. Fixes: 639665053fa ("anv/grl: Build OpenCL kernels") Part-of: (cherry picked from commit 435a6079099cce08ead5f7d5f305694bbf466717) --- .pick_status.json | 2 +- src/intel/vulkan/grl/meson.build | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.pick_status.json b/.pick_status.json index c0e3feb6e49..29ad0a0d448 100644 --- a/.pick_status.json +++ b/.pick_status.json @@ -4378,7 +4378,7 @@ "description": "intel: Disable shader cache when executing intel_clc during the build", "nominated": true, "nomination_type": 1, - "resolution": 0, + "resolution": 1, "main_sha": null, "because_sha": "639665053fabad75afcf7889970c6a4119fdae92" }, diff --git a/src/intel/vulkan/grl/meson.build b/src/intel/vulkan/grl/meson.build index 3d7567cfc13..c0056b3493d 100644 --- a/src/intel/vulkan/grl/meson.build +++ b/src/intel/vulkan/grl/meson.build @@ -142,6 +142,7 @@ foreach t : [['125', 'gfx125', 'dg2']] # without modifying grl source code, remove # if fixed there ], + env: ['MESA_SHADER_CACHE_DISABLE=true'], depends : [prog_intel_clc] ) endforeach