lima/ppir: add write after read deps for registers
authorVasily Khoruzhick <anarsoul@gmail.com>
Mon, 19 Aug 2019 05:57:54 +0000 (22:57 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Sat, 24 Aug 2019 01:19:47 +0000 (18:19 -0700)
commitd11e1b790937f6b0cacbd00bc3ecddf8d0931453
tree6ff061b52af3bcdaa230f8d60d3827beff6227b0
parentcd8c569ced321a80f6a45522c270e1db154481b3
lima/ppir: add write after read deps for registers

For cases like:

(1) r1 = r2
(2) r2 = ssa1

We need to add (1) as dependency of (2), otherwise scheduler may
reorder them.

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