nir: Add builder helpers for MOVs with ALU sources and swizzling MOVs.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Mar 2015 21:51:02 +0000 (14:51 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Mar 2015 04:16:33 +0000 (21:16 -0700)
commit06f7bea96ab62e7de1523de837f5b69c1bac6513
tree1343f21fa9fc7be18454118c881206e379cd5e08
parent75c922e0fed41acf28318b082f7f915c752ffe74
nir: Add builder helpers for MOVs with ALU sources and swizzling MOVs.

These will be useful for prog->nir and tgsi->nir.

v2: Don't forget to mark nir_swizzle as inline (Eric).

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/glsl/nir/nir_builder.h