diff options
author | Dave Airlie <[email protected]> | 2017-02-15 04:51:02 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2017-02-16 14:10:45 +1000 |
commit | 7593f2ac1b65b764cdf49007553bf58dd85cd3f5 (patch) | |
tree | 4ba450234cd0313588cb86a40b69201df4b2427a | |
parent | b292e662fc02eb999936709333c875b53b23223c (diff) |
nir/types: add C accessors for 64-bit integer types.
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
-rw-r--r-- | src/compiler/nir_types.cpp | 12 | ||||
-rw-r--r-- | src/compiler/nir_types.h | 2 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index cc90efd2ae7..52fd0e95c84 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 cafb8c18294..e99b2262162 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); |