mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 22:10:11 +01:00
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:
parent
17ea1642e2
commit
90beea75f6
1 changed files with 2 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue