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: 76440fcca9 freedreno/ir3: clean up dangling false-dep's
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
Rob Clark 2018-02-20 13:40:46 -05:00
parent ac731531a1
commit 4c4e6232ee
1 changed files with 1 additions and 0 deletions

View File

@ -361,6 +361,7 @@ reg_cp(struct ir3_cp_ctx *ctx, struct ir3_instruction *instr,
instr->barrier_conflict |= src->barrier_conflict;
unuse(src);
reg->instr->use_count++;
}
} else if (is_same_type_mov(src) &&