nir/nir_lower_io: Add vec4 support

Graphics / Mesa 3D Graphics Library / Mesa - Iago Toral Quiroga [igalia.com] - 3 August 2015 11:40 UTC

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).

01f6235 nir/nir_lower_io: Add vec4 support
src/glsl/nir/nir.h | 18 ++++----
src/glsl/nir/nir_lower_io.c | 87 +++++++++++++++++++++++++++--------
src/mesa/drivers/dri/i965/brw_nir.c | 14 +++---
3 files changed, 86 insertions(+), 33 deletions(-)

Upstream: cgit.freedesktop.org


  • Share