lima/ppir: convert to nir_legacy
authorErico Nunes <nunes.erico@gmail.com>
Tue, 18 Jul 2023 19:35:08 +0000 (21:35 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 1 Aug 2023 18:36:50 +0000 (18:36 +0000)
commit9ad3a80b138bf8983ec0372c2f668471338db29b
treed6ff3ed5dcd00213eade82075b7f9fe2a12524dc
parent87a17039496c70165e15608d2ea14c331adafc4a
lima/ppir: convert to nir_legacy

With the upcoming transition away from nir_register and modifiers in
nir, ppir needs to prepare for those features to be removed.
The most straightforward way for ppir without major reworks at this time
is to use the new nir_legacy helpers so that most of the backend can be
kept untouched (particularly due to use of abs/neg/sat modifiers).
Do this for now to unblock the transition with little impact; ppir can
be optimized at a later moment to have its own passes which will allow
it to drop the nir_legacy use and use just the chasing helpers.

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/24246>
src/gallium/drivers/lima/ir/pp/nir.c
src/gallium/drivers/lima/ir/pp/node.c
src/gallium/drivers/lima/ir/pp/ppir.h
src/gallium/drivers/lima/lima_program.c