summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorIago Toral Quiroga <[email protected]>2016-01-05 09:14:51 +0100
committerSamuel Iglesias Gonsálvez <[email protected]>2016-04-28 12:01:40 +0200
commitbf91df7f7ff0c07e12d49a47df3b67ee149540f9 (patch)
tree67f52b32e7e410b83bb1cbcb20a0bb312dd500f2 /src/compiler/nir/nir.h
parent126a1ac03f7c7d7cd01629c91725ffced06147a9 (diff)
nir/lower_double_ops: lower fract()
At least i965 hardware does not have native support for fract() on doubles. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 252567ceae5..ac96727cad6 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2420,6 +2420,7 @@ typedef enum {
nir_lower_dtrunc = (1 << 3),
nir_lower_dfloor = (1 << 4),
nir_lower_dceil = (1 << 5),
+ nir_lower_dfract = (1 << 6)
} nir_lower_doubles_options;
void nir_lower_doubles(nir_shader *shader, nir_lower_doubles_options options);