From: Iago Toral Quiroga Date: Fri, 31 Jul 2020 12:50:57 +0000 (+0200) Subject: nir/glsl: add a glsl_ivec4_type() helper X-Git-Tag: upstream/21.0.0~3835 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=50351df8285bfba6b56a1dc7562ce3776ba8b2b3;p=platform%2Fupstream%2Fmesa.git nir/glsl: add a glsl_ivec4_type() helper Reviewed-by: Alejandro PiƱeiro Reviewed-by: Jason Ekstrand Part-of: --- diff --git a/src/compiler/nir_types.cpp b/src/compiler/nir_types.cpp index e185d9f..54814cc 100644 --- a/src/compiler/nir_types.cpp +++ b/src/compiler/nir_types.cpp @@ -457,6 +457,12 @@ glsl_uvec4_type(void) } const glsl_type * +glsl_ivec4_type(void) +{ + return glsl_type::ivec4_type; +} + +const glsl_type * glsl_int_type(void) { return glsl_type::int_type; diff --git a/src/compiler/nir_types.h b/src/compiler/nir_types.h index 2e085ef..b4bd9bc 100644 --- a/src/compiler/nir_types.h +++ b/src/compiler/nir_types.h @@ -170,6 +170,7 @@ 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_uvec4_type(void); +const struct glsl_type *glsl_ivec4_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);