nir: Add a glsl_vec_type() helper.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 18 Dec 2015 08:42:03 +0000 (00:42 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 23 Dec 2015 01:21:47 +0000 (17:21 -0800)
commit2bcf98940703bee4485e323f4a9e28e2c6fe41fd
treecfee62ef73244e4f0884baa52c12f4da2d706982
parent0daf51e130f89d1e83fa897ef8df9229829f5b18
nir: Add a glsl_vec_type() helper.

I need access to glsl_type::vec2_type from C.  Wrapping vec() also gives
us access to vec3 if we need it.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/glsl/nir/nir_types.cpp
src/glsl/nir/nir_types.h