From: Timothy Arceri Date: Wed, 15 Jun 2016 00:43:12 +0000 (+1000) Subject: nir: add glsl_dvec_type() helper X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7a9d6abcae63a6f837fa161246ecf1f14840e77b;p=mesa.git nir: add glsl_dvec_type() helper Reviewed-by: Kenneth Graunke --- diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index 2d46ed2a1ef..f694a84e72c 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -262,6 +262,12 @@ glsl_vec_type(unsigned n) return glsl_type::vec(n); } +const glsl_type * +glsl_dvec_type(unsigned n) +{ + return glsl_type::dvec(n); +} + const glsl_type * glsl_vec4_type(void) { diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index c505ac02c27..6b4f646b20b 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -119,6 +119,7 @@ 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); const struct glsl_type *glsl_int_type(void); const struct glsl_type *glsl_uint_type(void);