From 0ee5015da4c386c0ef8b6ff12fd2bb34022d86a6 Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Thu, 30 Jan 2025 16:49:06 +0100 Subject: [PATCH] Revert "st/mesa: move VS & TES output stores to the end before unlowering IO" MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 3290222a1a56169c5187e85e0ce61b3da861a820, 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 Reviewed-by: Marek Olšák Reviewed-by: Iago Toral Quiroga Signed-off-by: Juan A. Suarez Romero Part-of: --- src/mesa/state_tracker/st_program.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 1d5b83b3270..fbb6fd37187 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -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 &&