lima/ppir: don't assume that load coords gets value from register
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 1 Sep 2019 17:21:32 +0000 (10:21 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Wed, 4 Sep 2019 00:02:13 +0000 (00:02 +0000)
commite23fd2c3751500a64ef40bbc64cd2cb4bd7345f9
tree8a69f21bb98a21a76b82a6e01b776c9f95c9ff44
parentbd77d193004c8722b2b670f49d77988296cf6e56
lima/ppir: don't assume that load coords gets value from register

It can load value from varying directly as well. Also load_regs is the
only op that has a source, so add src_num field to load node and set it
accordingly.

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