[Mesa-dev] [PATCH 20/50] glsl: add define to lower all double operations

Dave Airlie airlied at gmail.com
Tue Mar 13 04:24:45 UTC 2018


From: Dave Airlie <airlied at redhat.com>

We will add all fp64 ops to this for now, later drivers
may want to only lower some.

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/compiler/glsl/ir_optimization.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compiler/glsl/ir_optimization.h b/src/compiler/glsl/ir_optimization.h
index c48d0a9..370812f 100644
--- a/src/compiler/glsl/ir_optimization.h
+++ b/src/compiler/glsl/ir_optimization.h
@@ -62,6 +62,7 @@
 #define MOD64                     (1U << 3)
 #define ABS64                     (1U << 4)
 
+#define LOWER_ALL_DOUBLE_OPS (ABS64)
 /**
  * \see class lower_packing_builtins_visitor
  */
-- 
2.9.5



More information about the mesa-dev mailing list