freedreno/ir3: fix use_count refcnt'ing issue
authorRob Clark <robdclark@gmail.com>
Tue, 20 Feb 2018 18:40:46 +0000 (13:40 -0500)
committerRob Clark <robdclark@gmail.com>
Tue, 20 Feb 2018 18:43:42 +0000 (13:43 -0500)
commit4c4e6232ee2e6dd4c19f526c06df05b829174240
tree0a5cc12d3485547ea7b18473d881e7d053f3a168
parentac731531a1e43e4fa3e10099380a3bba68d65bfd
freedreno/ir3: fix use_count refcnt'ing issue

Was hitting an assert with vs-varying-array-mat4-index-col-row-wr.shader_test

When eliminating a copy, we were dropping the use_count of the mov that
is skipped, but not increasing the use_count of it's src instruction.

Fixes: 76440fcca91 freedreno/ir3: clean up dangling false-dep's
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3_cp.c