summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-01-28 10:39:29 -0800
committerEric Anholt <[email protected]>2015-02-18 14:47:50 -0800
commitcb95a228e81a963d77f50058c7406db0ad3bccac (patch)
treeabfe7e9ac2679b79d8be1c528bf915a4f1d0c3e0 /src/glsl/nir/nir.h
parentccf14bca4b892a0dffa1d8c244bfabe384d70f98 (diff)
nir: Add a flag for lowering fsqrt(x) to frcp(frsqrt(x)).
vc4 cse/algebraic-disabled stats: total uniforms in shared programs: 13972 -> 13966 (-0.04%) uniforms in affected programs: 408 -> 402 (-1.47%) total instructions in shared programs: 44973 -> 44911 (-0.14%) instructions in affected programs: 1551 -> 1489 (-4.00%) 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 bcc51e88ac8..37e15efa5cf 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -1328,6 +1328,7 @@ typedef struct nir_function {
typedef struct nir_shader_compiler_options {
bool lower_fpow;
+ bool lower_fsqrt;
} nir_shader_compiler_options;
typedef struct nir_shader {