nir: Add a helper to get the uvec4 type.

I needed this in the vc5 compiler.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
Eric Anholt 2017-12-28 15:12:20 -08:00
parent 39811a2894
commit deb552ca27
2 changed files with 7 additions and 0 deletions

View file

@ -297,6 +297,12 @@ glsl_vec4_type(void)
return glsl_type::vec4_type;
}
const glsl_type *
glsl_uvec4_type(void)
{
return glsl_type::uvec4_type;
}
const glsl_type *
glsl_int_type(void)
{

View file

@ -136,6 +136,7 @@ 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_uvec4_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);