nir/nir_lower_io: Add vec4 support
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 18 Jun 2015 11:52:21 +0000 (13:52 +0200)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 3 Aug 2015 16:40:47 +0000 (09:40 -0700)
commit01f6235020f9f0c2bc1a6e6ea9bd15c22fb2bcf5
tree5b975529153843f332d18ef7fc4b37658d7f7b24
parent5e839727ed2378a01d3b657bad83abd4728e8da6
nir/nir_lower_io: Add vec4 support

The current implementation operates in scalar mode only, so add a vec4
mode where types are padded to vec4 sizes.

This will be useful in the i965 driver for its vec4 nir backend
(and possbly other drivers that have vec4-based shaders).

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_io.c
src/mesa/drivers/dri/i965/brw_nir.c