freedreno/ir3: fix fallout of unused false-depth elimination
authorRob Clark <robdclark@gmail.com>
Mon, 2 Apr 2018 14:47:23 +0000 (10:47 -0400)
committerRob Clark <robdclark@gmail.com>
Tue, 3 Apr 2018 10:08:56 +0000 (06:08 -0400)
commit91f9450b3222469d93c270b8ca5fb4bf2ef584f2
treef116835d71b69b7cffb9212b2ff1322388cd3a1e
parent7e9b7ec094500f1245eed518592f99244e54a753
freedreno/ir3: fix fallout of unused false-depth elimination

Since we were MARK flag for both preventing loops, and tracking whether
instructions were used, we could end up in an infinite loop due to
bd2ca2bcdd.  Instead invert the logic.. mark all instructions UNUSED
up front and clear the flag as we visit them.

Fixes: bd2ca2bcdd freedreno/ir3: eliminate unused false-deps
Signed-off-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/ir3/ir3.h
src/gallium/drivers/freedreno/ir3/ir3_depth.c