lima/ppir: rework emit nir to ppir
authorErico Nunes <nunes.erico@gmail.com>
Thu, 13 Feb 2020 19:21:00 +0000 (20:21 +0100)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 9 May 2020 12:40:21 +0000 (14:40 +0200)
commit570f1420dbf361cf889c21c119816e063ecc3cea
tree2a02f7a18b3c30bfcd0c9096f6769344f39931e5
parent6b21b771f7b4bdd60089c784ed35e33622c8932a
lima/ppir: rework emit nir to ppir

The previous code assumed that a ppir node would be created for each nir
instr and used that to add it to the list of nodes and verify success.
This didn't make much sense anymore since some emit paths create
multiple nodes anyway, and this didn't allow for an emit call to not
create any new ppir node while still returning success.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4632>
src/gallium/drivers/lima/ir/pp/nir.c