[Mesa-dev] [PATCH 13/18] nir: add glsl_double_type() helper

Timothy Arceri timothy.arceri at collabora.com
Wed Jun 15 05:38:45 UTC 2016


Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/compiler/nir_types.cpp | 6 ++++++
 src/compiler/nir_types.h   | 1 +
 2 files changed, 7 insertions(+)

diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp
index 835d53b..f694a84 100644
--- a/src/compiler/nir_types.cpp
+++ b/src/compiler/nir_types.cpp
@@ -251,6 +251,12 @@ glsl_float_type(void)
 }
 
 const glsl_type *
+glsl_double_type(void)
+{
+   return glsl_type::double_type;
+}
+
+const glsl_type *
 glsl_vec_type(unsigned n)
 {
    return glsl_type::vec(n);
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index f7147a9..6b4f646 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -117,6 +117,7 @@ bool glsl_sampler_type_is_array(const struct glsl_type *type);
 
 const struct glsl_type *glsl_void_type(void);
 const struct glsl_type *glsl_float_type(void);
+const struct glsl_type *glsl_double_type(void);
 const struct glsl_type *glsl_vec_type(unsigned n);
 const struct glsl_type *glsl_dvec_type(unsigned n);
 const struct glsl_type *glsl_vec4_type(void);
-- 
2.5.5



More information about the mesa-dev mailing list