pan/bi: Don't reorder push with no_ubo_to_push

Otherwise, load_push_constant won't work properly. This could probably be made
to work if we tried hard enough, but we still don't want reordering for internal
(meta) shaders which are layed out deliberately.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16916>
This commit is contained in:
Alyssa Rosenzweig 2022-06-07 15:15:04 -04:00 committed by Marge Bot
parent 17ea1642e2
commit 90beea75f6

View file

@ -5022,7 +5022,8 @@ bi_compile_variant_nir(nir_shader *nir,
bi_opt_dead_code_eliminate(ctx);
bi_opt_cse(ctx);
bi_opt_dead_code_eliminate(ctx);
bi_opt_reorder_push(ctx);
if (!ctx->inputs->no_ubo_to_push)
bi_opt_reorder_push(ctx);
bi_validate(ctx, "Optimization passes");
}