lima/gpir: Don't emit movs when translating from NIR
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 18 Sep 2019 11:13:08 +0000 (18:13 +0700)
committerConnor Abbott <cwabbott0@gmail.com>
Tue, 24 Sep 2019 06:43:48 +0000 (08:43 +0200)
commitef38a659fbcc5eb22ad653e6d557d39e2b7b5fe8
tree96d1173520f031365b7365f9e864350688298fc3
parent96c31d9a555c46b380ea861c08b620eb556954bf
lima/gpir: Don't emit movs when translating from NIR

The scheduler doesn't expect them. To do this, I had to refactor the
registration part of gpir_node_create_dest() to be separate from
creating and inserting the node, since the last two now aren't done when
handling moves. This adds more code but creates the possibility of
automatically inserting input dependencies when inserting nodes, similar
to what's done in NIR with the use-def lists (this isn't done yet).

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/gp/nir.c