Mesa (master): pan/mdg: Drop `opt` in name of midgard_opt_cull_dead_branch

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Fri May 1 18:51:01 UTC 2020


Module: Mesa
Branch: master
Commit: 1c2d469506c29cb114568b5b74f9e9c3fa00706b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c2d469506c29cb114568b5b74f9e9c3fa00706b

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Thu Apr 30 13:13:24 2020 -0400

pan/mdg: Drop `opt` in name of midgard_opt_cull_dead_branch

It's necessary for conformance - not an optimization.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4852>

---

 src/panfrost/midgard/midgard_compile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index 583b9c3726c..de2f0164bc3 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -2166,7 +2166,7 @@ embedded_to_inline_constant(compiler_context *ctx, midgard_block *block)
  * per block is legal semantically */
 
 static void
-midgard_opt_cull_dead_branch(compiler_context *ctx, midgard_block *block)
+midgard_cull_dead_branch(compiler_context *ctx, midgard_block *block)
 {
         bool branched = false;
 
@@ -2611,7 +2611,7 @@ midgard_compile_shader_nir(nir_shader *nir, panfrost_program *program, bool is_b
          * them */
         mir_foreach_block(ctx, _block) {
                 midgard_block *block = (midgard_block *) _block;
-                midgard_opt_cull_dead_branch(ctx, block);
+                midgard_cull_dead_branch(ctx, block);
         }
 
         /* Ensure we were lowered */



More information about the mesa-commit mailing list