summaryrefslogtreecommitdiff
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 4ea0be0b666..2822be84b22 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -3224,6 +3224,14 @@ typedef struct nir_shader_compiler_options {
bool lower_ftrunc;
+ /** Lowers fround_even to ffract+feq+csel.
+ *
+ * Not correct in that it doesn't correctly handle the "_even" part of the
+ * rounding, but good enough for DX9 array indexing handling on DX9-class
+ * hardware.
+ */
+ bool lower_fround_even;
+
bool lower_ldexp;
bool lower_pack_half_2x16;