lima/ppir: fix lod bias register codegen
authorErico Nunes <nunes.erico@gmail.com>
Mon, 13 Apr 2020 13:22:53 +0000 (15:22 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sat, 9 May 2020 11:30:07 +0000 (11:30 +0000)
commit741aa3439d7d38c26d0baf20be506cf79c30978d
treef0c75484e0e012ae331f04485056c52effc5bec2
parentcef1c73634493ef9766baa0b6a898369eff7686f
lima/ppir: fix lod bias register codegen

The lod bias register is correctly run through the entire compilation
process, but in the end its allocated register value was never being
added to the instruction.
It seems that most programs were lucky enough that lod bias was assigned
register 0.x so that things worked anyway.

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/codegen.c