nir: Make some helpers for copying ALU src/dests.
authorEric Anholt <eric@anholt.net>
Wed, 21 Jan 2015 23:55:23 +0000 (15:55 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 24 Jan 2015 00:37:16 +0000 (16:37 -0800)
commitb2001278169b1f943c0bb6edb2d6985348beab4a
treeedfffead2b420b1a14aa4f1d5c7811129776843d
parent15063d2ad0945004ef387511d0c805bbe734bc5f
nir: Make some helpers for copying ALU src/dests.

There aren't many users yet, but I wanted to do this from my scalarizing
pass.

v2: Constify the src arguments.

Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
src/glsl/nir/nir.c
src/glsl/nir/nir.h
src/glsl/nir/nir_lower_vec_to_movs.c
src/glsl/nir/nir_opt_peephole_select.c