diff --git a/src/gallium/drivers/zink/zink_compiler.c b/src/gallium/drivers/zink/zink_compiler.c index 3d7c9d4b495..164c9fff18a 100644 --- a/src/gallium/drivers/zink/zink_compiler.c +++ b/src/gallium/drivers/zink/zink_compiler.c @@ -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);