zink: run opt_combine_stores when optimizing

this ensures stores to mesh builtins are vectorized, as required by
spec

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40366>
This commit is contained in:
Mike Blumenkrantz 2026-03-12 06:49:47 -04:00 committed by Marge Bot
parent eed3007588
commit 20c65db45d

View file

@ -1590,6 +1590,7 @@ optimize_nir(struct nir_shader *s, struct zink_shader *zs, bool can_shrink)
NIR_PASS(progress, s, nir_lower_alu_to_scalar, filter_pack_instr, NULL);
NIR_PASS(progress, s, nir_opt_copy_prop_vars);
NIR_PASS(progress, s, nir_opt_copy_prop);
NIR_PASS(progress, s, nir_opt_combine_stores, nir_var_all);
NIR_PASS(progress, s, nir_opt_remove_phis);
if (s->options->lower_int64_options) {
NIR_PASS(progress, s, nir_lower_64bit_phis);