[Mesa-dev] [PATCH 21/42] panfrost/midgard: Eliminate redundant type convert

Alyssa Rosenzweig alyssa.rosenzweig at collabora.com
Mon Jul 8 14:08:34 UTC 2019


Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
---
 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 at 16'), ('f2i32', ('f2f32', a))),
     (('f2u32', 'a at 16'), ('f2u32', ('f2f32', a))),
+
+    # Totally redundant
+    (('~f2f16', ('f2f32', 'a at 16')), a),
 ]
 
 # Midgard scales fsin/fcos arguments by pi.
-- 
2.20.1



More information about the mesa-dev mailing list