lima/ppir: add fallback mov option for const scheduler
authorErico Nunes <nunes.erico@gmail.com>
Tue, 14 Apr 2020 00:52:48 +0000 (02:52 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Sat, 9 May 2020 12:40:37 +0000 (14:40 +0200)
commita0c58867cddcf199cf85d270b42965678ad8af10
treea4aa08dbd8ad503f469744487d65e110eb8c24ec
parent8c47640731303ed2607d28ce2cf19a7e8f0f4006
lima/ppir: add fallback mov option for const scheduler

It turns out that with more aggressive combining, there can be cases
where the available const slots are not enough for one instruction.
In particular, fcsel can take up to two consts, and a previous alu slot,
such as a comparison condition, might require an additional const.
So add a fallback for it like for uniforms.

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