diff options
author | Dave Airlie <airlied@gmail.com> | 2014-08-14 20:21:46 +1000 |
---|---|---|
committer | Ilia Mirkin <imirkin@alum.mit.edu> | 2015-02-19 00:28:35 -0500 |
commit | fffbf371242b07ff157b88792ab65d82c785de78 (patch) | |
tree | 8cf203814c837c16f15d7baf6c619f6ee983f01f /src/glsl/ir_optimization.h | |
parent | e6354a2850d6735b857298ad206a97db0de47fd6 (diff) | |
download | external_mesa3d-fffbf371242b07ff157b88792ab65d82c785de78.zip external_mesa3d-fffbf371242b07ff157b88792ab65d82c785de78.tar.gz external_mesa3d-fffbf371242b07ff157b88792ab65d82c785de78.tar.bz2 |
glsl: lower double optional passes (v2)
These lowering passes are optional for the backend to request, currently
the TGSI softpipe backend most likely the r600g backend would want to use
these passes as is. They aim to hit the gallium opcodes from the standard
rounding/truncation functions.
v2: also lower floor in mod_to_floor
Signed-off-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Diffstat (limited to 'src/glsl/ir_optimization.h')
-rw-r--r-- | src/glsl/ir_optimization.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/ir_optimization.h b/src/glsl/ir_optimization.h index 912d910..9f91e2f 100644 --- a/src/glsl/ir_optimization.h +++ b/src/glsl/ir_optimization.h @@ -41,6 +41,7 @@ #define CARRY_TO_ARITH 0x200 #define BORROW_TO_ARITH 0x400 #define SAT_TO_CLAMP 0x800 +#define DOPS_TO_DFRAC 0x1000 /** * \see class lower_packing_builtins_visitor |