Mesa (master): nir: Add a glsl_uint_type() wrapper.

Kenneth Graunke kwg at kemper.freedesktop.org
Mon Aug 17 04:47:13 UTC 2015


Module: Mesa
Branch: master
Commit: afccbd725655e6e607029a8b359886f62e4aa807
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=afccbd725655e6e607029a8b359886f62e4aa807

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue May 12 01:12:46 2015 -0700

nir: Add a glsl_uint_type() wrapper.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Timothy Arceri <t_arceri at yahoo.com.au>

---

 src/glsl/nir/nir_types.cpp |    6 ++++++
 src/glsl/nir/nir_types.h   |    1 +
 2 files changed, 7 insertions(+)

diff --git a/src/glsl/nir/nir_types.cpp b/src/glsl/nir/nir_types.cpp
index 62176f5..940c676 100644
--- a/src/glsl/nir/nir_types.cpp
+++ b/src/glsl/nir/nir_types.cpp
@@ -155,6 +155,12 @@ glsl_vec4_type(void)
 }
 
 const glsl_type *
+glsl_uint_type(void)
+{
+   return glsl_type::uint_type;
+}
+
+const glsl_type *
 glsl_array_type(const glsl_type *base, unsigned elements)
 {
    return glsl_type::get_array_instance(base, elements);
diff --git a/src/glsl/nir/nir_types.h b/src/glsl/nir/nir_types.h
index 276d4ad..a8ff8f2 100644
--- a/src/glsl/nir/nir_types.h
+++ b/src/glsl/nir/nir_types.h
@@ -71,6 +71,7 @@ bool glsl_type_is_matrix(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_vec4_type(void);
+const struct glsl_type *glsl_uint_type(void);
 const struct glsl_type *glsl_array_type(const struct glsl_type *base,
                                         unsigned elements);
 




More information about the mesa-commit mailing list