nir/glsl: add a glsl_ivec4_type() helper
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 31 Jul 2020 12:50:57 +0000 (14:50 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 13 Oct 2020 21:21:32 +0000 (21:21 +0000)
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6766>

src/compiler/nir_types.cpp
src/compiler/nir_types.h

index e185d9f..54814cc 100644 (file)
@@ -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;
index 2e085ef..b4bd9bc 100644 (file)
@@ -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);