lima/ppir: handle all node types in ppir_node_replace_child
authorErico Nunes <nunes.erico@gmail.com>
Tue, 16 Jul 2019 23:31:01 +0000 (01:31 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Fri, 19 Jul 2019 16:01:45 +0000 (16:01 +0000)
commit32ced14badc14f6b7d3c4c0738c83074ea68ea7d
tree9226beb6d7fca93f12518824948c2c224f8c8495
parent2292f0c4b5216624768b7f990c449556a624f45d
lima/ppir: handle all node types in ppir_node_replace_child

ppir_node_replace_child is used by the const lowering routine in ppir.
All types need to be handled here, otherwise the src node is not updated
properly when one of the lowered nodes is a const, which results in, for
example, regalloc not assigning registers correctly.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/ir/pp/node.c