gallium/ttn: Use nir_builder_insert() rather than poking at cf_list.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 6 Aug 2015 14:44:35 +0000 (07:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Aug 2015 18:12:35 +0000 (11:12 -0700)
commit1bec29d04d970b4d60a8c60252313f25bebfe024
tree4bd983145710b3e286431244ce623ad734c6275b
parent78856194c191bf5dc9e28c13b6d4c4d89b3206c1
gallium/ttn: Use nir_builder_insert() rather than poking at cf_list.

I intend to remove nir_builder::cf_node_list, so I can't have this code
poking at it directly.  The proper way is to set the insertion point and
then simply insert things there.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/auxiliary/nir/tgsi_to_nir.c