lima/ppir: Add undef handling
authorAndreas Baierl <ichgeh@imkreisrum.de>
Tue, 20 Aug 2019 16:19:55 +0000 (18:19 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Fri, 13 Sep 2019 19:41:32 +0000 (19:41 +0000)
commit4b1a14fd47134a3810f9c15d137af4336819e081
treeced29cf75960988fe2a6563bd1745ead25ec0dc7
parent4ddadd63709769ff923687b4232e870f6fbcb8a8
lima/ppir: Add undef handling

Add a ppir dummy node for nir_ssa_undef_instr, create a reg for it and mark
it as undefined, so that regalloc can set it non-interfering to avoid
register pressure.

Signed-off-by: Andreas Baierl <ichgeh@imkreisrum.de>
Reviewed-by: Vasily Khozuzhick <anarsoul@gmail.com>
Reviewed-by: Erico Nunes <nunes.erico@gmail.com>
src/gallium/drivers/lima/ir/pp/nir.c
src/gallium/drivers/lima/ir/pp/node_to_instr.c
src/gallium/drivers/lima/ir/pp/ppir.h
src/gallium/drivers/lima/ir/pp/regalloc.c