nir: Add a couple of helpers for glsl types.
authorEric Anholt <eric@anholt.net>
Thu, 30 Oct 2014 23:49:32 +0000 (16:49 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 29 Jan 2015 19:41:17 +0000 (11:41 -0800)
commit36c604c8246ecbd50ee4d7d685201822973df5ec
tree643ee93b506d2128426d4383262730deecec7b77
parent765cfe9a90b6d592b232d1647d65d50c983bea2f
nir: Add a couple of helpers for glsl types.

This will be used by tgsi_to_nir, which needs to get vec4 types for
declaring shader input/output variables.

v2: Add a missing space.

Reviewed-by: Matt Turner <mattst88@gmail.com> (v2)
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_types.cpp
src/glsl/nir/nir_types.h