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 <ivan.briano@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31993>
This commit is contained in:
Kenneth Graunke 2024-11-05 11:24:21 -08:00 committed by Marge Bot
parent a6d4274822
commit 22b511ef02

View file

@ -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,
&params->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);