From 3dbedb26f571497a6bfcd58f7e48a32ec4bd58f8 Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Mon, 1 Jul 2019 19:57:49 -0700 Subject: [PATCH] panfrost/midgard: Eliminate redundant type convert Signed-off-by: Alyssa Rosenzweig --- src/gallium/drivers/panfrost/midgard/midgard_nir_algebraic.py | 3 +++ 1 file changed, 3 insertions(+) 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. -- 2.30.2