anv/apply_dynamic_offsets: Use rewrite_src instead of a regular assignment
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 14 May 2016 21:53:11 +0000 (14:53 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 20 May 2016 04:18:59 +0000 (21:18 -0700)
commit23090b51e042790974aa848bbe2760f659dba925
tree620b24f94b5843c80a348b268a2133f5ad52e9de
parentc29ffea6d161b14e1c6d1d1af7727425b323a3b5
anv/apply_dynamic_offsets: Use rewrite_src instead of a regular assignment

Originally we removed the instruction, changed the source, and then
re-inserted it.  This works, but nir_instr_rewrite_src is a bit more
obviously correct.
src/intel/vulkan/anv_nir_apply_dynamic_offsets.c