nir: Rewrite instr_rewrite_src
authorJason Ekstrand <jason.ekstrand@intel.com>
Mon, 13 Apr 2015 21:02:21 +0000 (14:02 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 23 Apr 2015 01:10:41 +0000 (18:10 -0700)
commit296131f4674ee979a8cffe56fc61bbd42110982e
tree85dd5b9390a53a5b3c46e3a9c845c8f7a6b3d88f
parentd61bd972d861d9246fe7f9de71158aa79368bb79
nir: Rewrite instr_rewrite_src

The old code wasn't correctly handling the case where the new value of the
source contains an indirect.

Reviewed-by: Connor Abbott <cwabbott0@gmail.com>
src/glsl/nir/nir.c