summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-01-30 13:53:39 -0800
committerEric Anholt <[email protected]>2015-02-18 14:47:51 -0800
commit1907a3a7ee4d756b12b6fef32a6e5ea7656436d1 (patch)
tree5a21b2bed219ca6f92e56ce899f3060a25bdf754 /src/glsl/nir/nir.h
parente5ecf8e4272522e1950d1d4318df19377bf49ae1 (diff)
nir: Add a flag for lowering fsat.
vc4 cse/algebraic-disabled stats: total instructions in shared programs: 44356 -> 44354 (-0.00%) instructions in affected programs: 55 -> 53 (-3.64%) v2: Rebase to master (no TGSI->NIR present) Reviewed-by: Kenneth Graunke <[email protected]> (v1)
Diffstat (limited to 'src/glsl/nir/nir.h')
-rw-r--r--src/glsl/nir/nir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 7be1abb5743..f46ec151f6d 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1329,6 +1329,7 @@ typedef struct nir_function {
typedef struct nir_shader_compiler_options {
bool lower_ffma;
bool lower_fpow;
+ bool lower_fsat;
bool lower_fsqrt;
/** lowers fneg and ineg to fsub and isub. */
bool lower_negate;