lima/ppir: optimize tex loads with single successor
authorErico Nunes <nunes.erico@gmail.com>
Thu, 23 Apr 2020 18:12:01 +0000 (20:12 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 16 May 2020 15:24:03 +0000 (17:24 +0200)
commit632a921bd0dd40ad3167a0b8a74fe7054a78256a
treec139063f1c71dc4bbc8adc5a53158210e23ae69e
parenta4b7699d849d28adfd057136812b00a6b4838ed0
lima/ppir: optimize tex loads with single successor

These don't need a mov, and can be used directly with pipeline output.

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/4975>
src/gallium/drivers/lima/ir/pp/lower.c
src/gallium/drivers/lima/ir/pp/nir.c