nir: add nir_channel() to get at single components of vec's
authorRob Clark <robclark@freedesktop.org>
Thu, 10 Sep 2015 20:06:05 +0000 (16:06 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 13 Sep 2015 15:08:27 +0000 (11:08 -0400)
commitb88aeff4f51e8a505a8c5e5905d80ae3b75ed3ef
tree71cefc8bcb0e8b5b2e087809ca04c17d17fbea69
parent86358e949eaa13c075338901024d0e1009fa7e99
nir: add nir_channel() to get at single components of vec's

Rather than make yet another copy of channel(), let's move it into nir.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir_builder.h
src/glsl/nir/nir_lower_tex_projector.c
src/glsl/nir/nir_normalize_cubemap_coords.c