From 042417a72e09681fe41db9012ee79d5dccabb6d6 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Mon, 17 Nov 2025 15:56:47 -0800 Subject: [PATCH] brw: Don't spill_all on internal shaders Basically all of the internal shaders (e.g., from blorp) will fail assertions if there is any scratch space used. Reviewed-by: Lionel Landwerlin Part-of: --- src/intel/compiler/brw/brw_shader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/intel/compiler/brw/brw_shader.cpp b/src/intel/compiler/brw/brw_shader.cpp index 8c443ffbf72..f03ff044998 100644 --- a/src/intel/compiler/brw/brw_shader.cpp +++ b/src/intel/compiler/brw/brw_shader.cpp @@ -1116,7 +1116,8 @@ brw_allocate_registers(brw_shader &s, bool allow_spilling) s.debug_optimizer(nir, "pre_register_allocate", 90, 90); - bool spill_all = allow_spilling && INTEL_DEBUG(DEBUG_SPILL_FS); + bool spill_all = allow_spilling && INTEL_DEBUG(DEBUG_SPILL_FS) && + !s.nir->info.internal; /* Before we schedule anything, stash off the instruction order as an array * of brw_inst *. This way, we can reset it between scheduling passes to