From: Alyssa Rosenzweig Date: Tue, 2 Jul 2019 02:57:49 +0000 (-0700) Subject: panfrost/midgard: Eliminate redundant type convert X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3dbedb26f571497a6bfcd58f7e48a32ec4bd58f8;p=mesa.git panfrost/midgard: Eliminate redundant type convert Signed-off-by: Alyssa Rosenzweig --- diff --git a/src/gallium/drivers/panfrost/midgard/midgard_nir_algebraic.py b/src/gallium/drivers/panfrost/midgard/midgard_nir_algebraic.py index 871195b48ca..951b4b23241 100644 --- a/src/gallium/drivers/panfrost/midgard/midgard_nir_algebraic.py +++ b/src/gallium/drivers/panfrost/midgard/midgard_nir_algebraic.py @@ -57,6 +57,9 @@ converts = [ (('f2i32', 'a@16'), ('f2i32', ('f2f32', a))), (('f2u32', 'a@16'), ('f2u32', ('f2f32', a))), + + # Totally redundant + (('~f2f16', ('f2f32', 'a@16')), a), ] # Midgard scales fsin/fcos arguments by pi.