From de5aedfad9556b2140bd1aff4b1746669f548592 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Thu, 21 May 2026 10:13:23 -0400 Subject: [PATCH] jay: fix FS reading too many sysvals caught in dEQP-GLES31.functional.texture.texture_buffer.modify.bufferdata.offset_1_alignments simd32 Signed-off-by: Alyssa Rosenzweig Part-of: --- src/intel/compiler/jay/jay_nir.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/intel/compiler/jay/jay_nir.c b/src/intel/compiler/jay/jay_nir.c index e271630f568..d84a66877cc 100644 --- a/src/intel/compiler/jay/jay_nir.c +++ b/src/intel/compiler/jay/jay_nir.c @@ -350,6 +350,12 @@ jay_process_nir(const struct intel_device_info *devinfo, NIR_PASS(_, nir, brw_nir_lower_alpha_to_coverage); } + /* We want to run the standard opt loop after lowering but before + * gathering prog data, so we have accurate information about which system + * values are actually used (vs DCE'd away). + */ + brw_nir_optimize(pt); + // TODO // NIR_PASS(_, nir, brw_nir_move_interpolation_to_top);