lima/ppir: fix ordering deps
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 19 Aug 2019 05:51:34 +0000 (22:51 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Sat, 24 Aug 2019 01:19:47 +0000 (18:19 -0700)
commitcd8c569ced321a80f6a45522c270e1db154481b3
tree65be3a74d25b0076f560c9d4fd28756b9ee20556
parentbf2872eeb2d60d9eb0466728beb64cfee507654e
lima/ppir: fix ordering deps

There can be several root nodes, i.e.:

(1) r0 = r1
(2) r2 = r3
(3) branch if (ssa1)

We need to make (3) depend on (1) and (2), old code added
dependency only for (2), and (1) was kept as root node since there
is no branch/discard or store color between two movs.

Tested-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/pp/nir.c