diff options
author | Alyssa Rosenzweig <[email protected]> | 2020-05-12 13:26:32 -0400 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-05-12 22:30:41 +0000 |
commit | 9a7f0e268b7baeb92d8d7d2989beb43550262406 (patch) | |
tree | 9371a952b71da080c914acd16fdc84674923d9bc /src | |
parent | d429187bf3988fca190fcbd53e416b8a46506b25 (diff) |
pan/mdg: Use the helper invo analyze passes
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5014>
Diffstat (limited to 'src')
-rw-r--r-- | src/panfrost/midgard/midgard_compile.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c index 8ec29cf6bbe..e144dd72b2a 100644 --- a/src/panfrost/midgard/midgard_compile.c +++ b/src/panfrost/midgard/midgard_compile.c @@ -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); |