nir: Add nir_builder helpers for creating load_const intrinsics.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 25 Mar 2015 09:11:52 +0000 (02:11 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 28 Mar 2015 04:16:33 +0000 (21:16 -0700)
commit75c922e0fed41acf28318b082f7f915c752ffe74
treec32699d617b848d4b163a2ef981db84926036c6e
parent74fd226e34d0cf5e9ff43174ae69b4a66f5de1ab
nir: Add nir_builder helpers for creating load_const intrinsics.

Both prog->nir and tgsi->nir will want to use these.

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