From 22b511ef02d148e6b3bd5dea4ef716a789d8b0cd Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Tue, 5 Nov 2024 11:24:21 -0800 Subject: [PATCH] intel: Set shader_spilling_rate=11 in intel_clc A while back Matt enabled shader_spilling_rate by default for anv. But intel_clc doesn't use the driconf mechanism that we use there. The GRL shaders spill a lot, and with us now compiling additional generations of the shaders, Mesa build time is getting prohibitively expensive. By setting this, we drop the time taken for a clean debug build by approximately 35% on my current laptop. Reviewed-by: Ivan Briano Reviewed-by: Matt Turner Part-of: --- src/intel/compiler/intel_clc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/intel_clc.c b/src/intel/compiler/intel_clc.c index 757c13dc8da..3d225672270 100644 --- a/src/intel/compiler/intel_clc.c +++ b/src/intel/compiler/intel_clc.c @@ -420,6 +420,7 @@ output_isa(const struct intel_clc_params *params, struct clc_binary *binary) struct brw_compiler *compiler = brw_compiler_create(params->mem_ctx, ¶ms->devinfo); + compiler->spilling_rate = 11; compiler->shader_debug_log = compiler_log; compiler->shader_perf_log = compiler_log; struct disk_cache *disk_cache = get_disk_cache(compiler);