jay: Call constant folding before collecting FS outputs

Fixes "multiple stores to the same location" assertions in tests like
dEQP-VK.pipeline.monolithic.color_write_enable_maxa.cwe_after_bind.attachments3_more0

In that case, the stores were actually to different locations, but some
constant additions hadn't been folded into the location field yet.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41688>
This commit is contained in:
Kenneth Graunke 2026-05-18 14:17:01 -07:00 committed by Marge Bot
parent 23884ee02c
commit a56aa9547b

View file

@ -332,6 +332,7 @@ jay_process_nir(const struct intel_device_info *devinfo,
NIR_PASS(_, nir, nir_shader_intrinsics_pass, lower_frag_coord,
nir_metadata_control_flow, NULL);
NIR_PASS(_, nir, nir_opt_barycentric, true);
NIR_PASS(_, nir, nir_opt_constant_folding);
lower_fragment_outputs(nir_shader_get_entrypoint(nir), devinfo,
key->fs.nr_color_regions, simd_width);