summaryrefslogtreecommitdiff
path: root/src/panfrost/midgard
diff options
context:
space:
mode:
authorJesse Natalie <jenatali@microsoft.com>2020-06-02 08:30:35 -0700
committerMarge Bot <eric+marge@anholt.net>2020-11-18 04:05:37 +0000
commitb94b827add3bd840b407f190099deff7c8c7e26f (patch)
tree76f21922e286dd040e9f966317e8dc60ba05d279 /src/panfrost/midgard
parentc730ace12b51d46585fac6710fbe57dccd67071c (diff)
panfrost/util: Move nir_undef_to_zero into core nir and add 'lower'
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7565>
Diffstat (limited to 'src/panfrost/midgard')
-rw-r--r--src/panfrost/midgard/midgard_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index bb0b0b52172..b08d9127bd4 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -300,7 +300,7 @@ optimise_nir(nir_shader *nir, unsigned quirks, bool is_blend)
}
NIR_PASS(progress, nir, nir_opt_undef);
- NIR_PASS(progress, nir, nir_undef_to_zero);
+ NIR_PASS(progress, nir, nir_lower_undef_to_zero);
NIR_PASS(progress, nir, nir_opt_loop_unroll,
nir_var_shader_in |