Revert "st/mesa: move VS & TES output stores to the end before unlowering IO"

This reverts commit 3290222a1a, which was
introduced to fix a regression that only happens in v3d.

As this was moved to the v3d driver, it does not makes any sense more to
do it here.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33310>
This commit is contained in:
Juan A. Suarez Romero 2025-01-30 16:49:06 +01:00 committed by Marge Bot
parent 1e0e521a7d
commit 0ee5015da4

View file

@ -834,12 +834,6 @@ st_create_common_variant(struct st_context *st,
* are still counted as enabled IO, which breaks things.
*/
NIR_PASS(_, state.ir.nir, nir_opt_dce);
/* vc4, vc5 require this. */
if (state.ir.nir->info.stage == MESA_SHADER_VERTEX ||
state.ir.nir->info.stage == MESA_SHADER_TESS_EVAL)
NIR_PASS(_, state.ir.nir, nir_move_output_stores_to_end);
NIR_PASS(_, state.ir.nir, st_nir_unlower_io_to_vars);
if (state.ir.nir->info.stage == MESA_SHADER_TESS_CTRL &&