prog_to_nir: Use nir_builder_insert() rather than poking at cf_list.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 6 Aug 2015 14:39:34 +0000 (07:39 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 25 Aug 2015 18:12:35 +0000 (11:12 -0700)
commit78856194c191bf5dc9e28c13b6d4c4d89b3206c1
tree7e4b52be6b4b3765ea8ea31197a0f98b12ff950b
parent5f14c417c86ced1847746c64d4db54c7e5ddc187
prog_to_nir: 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/mesa/program/prog_to_nir.c