pan/mdg: Use the helper invo analyze passes

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5014>
This commit is contained in:
Alyssa Rosenzweig 2020-05-12 13:26:32 -04:00 committed by Marge Bot
parent d429187bf3
commit 9a7f0e268b
1 changed files with 5 additions and 0 deletions

View File

@ -2627,6 +2627,11 @@ midgard_compile_shader_nir(nir_shader *nir, panfrost_program *program, bool is_b
if (ctx->stage == MESA_SHADER_FRAGMENT)
mir_add_writeout_loops(ctx);
/* Analyze now that the code is known but before scheduling creates
* pipeline registers which are harder to track */
mir_analyze_helper_terminate(ctx);
mir_analyze_helper_requirements(ctx);
/* Schedule! */
midgard_schedule_program(ctx);
mir_ra(ctx);