From a8481295d8bbbd92c86ec0611f2730130bc642cd Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 11 Feb 2026 15:30:38 -0800 Subject: [PATCH] brw: Only lower system values for passthrough TCS This cuts 75 passes that do nothing useful. Reviewed-by: Caio Oliveira Reviewed-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/brw/brw_nir.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/intel/compiler/brw/brw_nir.c b/src/intel/compiler/brw/brw_nir.c index cd4455b1e79..6d15d05b92c 100644 --- a/src/intel/compiler/brw/brw_nir.c +++ b/src/intel/compiler/brw/brw_nir.c @@ -3276,8 +3276,7 @@ brw_nir_create_passthrough_tcs(void *mem_ctx, const struct brw_compiler *compile nir->info.tess._primitive_mode = key->_tes_primitive_mode; nir_validate_shader(nir, "in brw_nir_create_passthrough_tcs"); - struct brw_nir_compiler_opts opts = {}; - brw_preprocess_nir(compiler, nir, &opts); + NIR_PASS(_, nir, nir_lower_system_values); return nir; }