[Mesa-dev] [PATCH 05/45] nir: Add rounding mode enum

Alejandro PiƱeiro apinheiro at igalia.com
Thu Jul 13 14:35:09 UTC 2017


From: Jose Maria Casanova Crespo <jmcasanova at igalia.com>

---
 src/compiler/nir/nir.h | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 2ac5b1e..115ec1b 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -107,6 +107,14 @@ typedef enum {
 } nir_variable_mode;
 
 
+typedef enum {
+   nir_rounding_mode_undef = 0,
+   nir_rounding_mode_rtne  = 1,
+   nir_rounding_mode_ru    = 2,
+   nir_rounding_mode_rd    = 3,
+   nir_rounding_mode_rtz   = 4,
+} nir_rounding_mode;
+
 typedef union {
    float f32[4];
    double f64[4];
-- 
2.9.3



More information about the mesa-dev mailing list