nir/glsl: add a glsl_ivec4_type() helper

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>
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 @@
 }
 
 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_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);