summaryrefslogtreecommitdiff
path: root/lib/mesa/src/compiler/glsl/ir_optimization.h
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2017-03-25 00:19:02 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2017-03-25 00:19:02 +0000
commit0ad866088a8e454456ac70baecf687d8a5d778c6 (patch)
tree7a14298d9b4761a1a9ddb2c8a71181157ce00372 /lib/mesa/src/compiler/glsl/ir_optimization.h
parent69b5b3baa9f08e83592004d9545c146f17b7fd30 (diff)
Import Mesa 13.0.6
Diffstat (limited to 'lib/mesa/src/compiler/glsl/ir_optimization.h')
-rw-r--r--lib/mesa/src/compiler/glsl/ir_optimization.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/mesa/src/compiler/glsl/ir_optimization.h b/lib/mesa/src/compiler/glsl/ir_optimization.h
index 6f2bc321f..95af29544 100644
--- a/lib/mesa/src/compiler/glsl/ir_optimization.h
+++ b/lib/mesa/src/compiler/glsl/ir_optimization.h
@@ -30,7 +30,7 @@
/* Operations for lower_instructions() */
#define SUB_TO_ADD_NEG 0x01
-#define DIV_TO_MUL_RCP 0x02
+#define FDIV_TO_MUL_RCP 0x02
#define EXP_TO_EXP2 0x04
#define POW_TO_EXP2 0x08
#define LOG_TO_LOG2 0x10
@@ -49,6 +49,8 @@
#define FIND_LSB_TO_FLOAT_CAST 0x20000
#define FIND_MSB_TO_FLOAT_CAST 0x40000
#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)
/**
* \see class lower_packing_builtins_visitor