nir: add comment about nir_src_copy()
authorRob Clark <robdclark@gmail.com>
Fri, 6 Apr 2018 12:28:53 +0000 (08:28 -0400)
committerRob Clark <robdclark@gmail.com>
Mon, 9 Apr 2018 19:36:21 +0000 (15:36 -0400)
commitc4457113e9327ce16e56fbf5a38a694e04849ab3
treef27de000d1f69cb387124a48ad1be90662eabd25
parent1d94aa19877fb702ffacacde28ad7253cce72c97
nir: add comment about nir_src_copy()

So it is more clear about when to use nir_instr_rewrite_src()

Signed-off-by: Rob Clark <robdclark@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir.c