[Mesa-dev] [PATCH 1/3] nir/types: add C accessors for 64-bit integer types.

Dave Airlie airlied at gmail.com
Wed Feb 15 04:54:33 UTC 2017


From: Dave Airlie <airlied at redhat.com>

Signed-off-by: Dave Airlie <airlied at redhat.com>
---
 src/compiler/nir_types.cpp | 12 ++++++++++++
 src/compiler/nir_types.h   |  2 ++
 2 files changed, 14 insertions(+)

diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp
index cc90efd..52fd0e9 100644
--- a/src/compiler/nir_types.cpp
+++ b/src/compiler/nir_types.cpp
@@ -289,6 +289,18 @@ glsl_uint_type(void)
 }
 
 const glsl_type *
+glsl_int64_t_type(void)
+{
+   return glsl_type::int64_t_type;
+}
+
+const glsl_type *
+glsl_uint64_t_type(void)
+{
+   return glsl_type::uint64_t_type;
+}
+
+const glsl_type *
 glsl_bool_type(void)
 {
    return glsl_type::bool_type;
diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h
index cafb8c1..e99b226 100644
--- a/src/compiler/nir_types.h
+++ b/src/compiler/nir_types.h
@@ -128,6 +128,8 @@ const struct glsl_type *glsl_dvec_type(unsigned n);
 const struct glsl_type *glsl_vec4_type(void);
 const struct glsl_type *glsl_int_type(void);
 const struct glsl_type *glsl_uint_type(void);
+const struct glsl_type *glsl_int64_t_type(void);
+const struct glsl_type *glsl_uint64_t_type(void);
 const struct glsl_type *glsl_bool_type(void);
 
 const struct glsl_type *glsl_scalar_type(enum glsl_base_type base_type);
-- 
2.7.4



More information about the mesa-dev mailing list