summaryrefslogtreecommitdiffstats
path: root/src/compiler/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2017-03-17 14:58:22 +0100
committerSamuel Pitoiset <[email protected]>2017-03-22 22:02:12 +0100
commit737c734cd4851968542c58892e50c3afa55471ef (patch)
tree09c78c4876f1e5243a8b6e549234a770790097c8 /src/compiler/glsl/ir_optimization.h
parent448f4c0c891945ea3d440d26045db33580673db7 (diff)
glsl: lower sqrt(abs()) and inversesqrt(abs()) if requested
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/compiler/glsl/ir_optimization.h')
-rw-r--r--src/compiler/glsl/ir_optimization.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/glsl/ir_optimization.h b/src/compiler/glsl/ir_optimization.h
index 485e8e01eef..82cdac9b3cc 100644
--- a/src/compiler/glsl/ir_optimization.h
+++ b/src/compiler/glsl/ir_optimization.h
@@ -53,6 +53,7 @@
#define IMUL_HIGH_TO_MUL 0x80000
#define DDIV_TO_MUL_RCP 0x100000
#define DIV_TO_MUL_RCP (FDIV_TO_MUL_RCP | DDIV_TO_MUL_RCP)
+#define SQRT_TO_ABS_SQRT 0x200000
/* Opertaions for lower_64bit_integer_instructions() */
#define MUL64 (1U << 0)