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: 639665053f ("anv/grl: Build OpenCL kernels")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22968>
(cherry picked from commit 435a607909)
This commit is contained in:
Matt Turner 2023-05-11 13:51:25 -04:00 committed by Dylan Baker
parent 4fe91a3204
commit 801b05aa17
2 changed files with 2 additions and 1 deletions

View File

@ -3134,7 +3134,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",
"notes": null

View File

@ -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