lima/ppir: combine varying loads in node_to_instr
authorErico Nunes <nunes.erico@gmail.com>
Mon, 13 Apr 2020 13:26:16 +0000 (15:26 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 9 May 2020 11:30:07 +0000 (11:30 +0000)
commit09003ba0700ed0ddc57d85e82320f15a2a90c8dd
treeebc601c144fb01674f488996d44c9f1b6af7c4ee
parentc6a3987f320fa26fa88e6d86cf236d7e426aab84
lima/ppir: combine varying loads in node_to_instr

Varying loads with a single successor have a high potential to be
combined with its successor node, like ppir does for uniforms, rather
than being in a separate instruction.
Even if ppir becomes capable of combining instructions in a separate
step, combining varying loads during node_to_instr is trivial enough
that it seems to be worth doing it in this stage, and this benefits
pretty much every program that uses varyings.

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/4535>
src/gallium/drivers/lima/ir/pp/node_to_instr.c