nir: return progress from nir_lower_packing
authorThomas H.P. Andersen <phomes@gmail.com>
Sat, 26 Jun 2021 22:44:56 +0000 (00:44 +0200)
committerMarge Bot <eric+marge@anholt.net>
Tue, 29 Jun 2021 22:08:29 +0000 (22:08 +0000)
commited530ac6c2088f03ee87bc7fa2a1956d887c4293
treed74456280ef2a1a5ff5bf4a08b7ad6a65a3b04ae
parenta92dcc4966d8193ecacf27870cb8701ce5db8853
nir: return progress from nir_lower_packing

Compiling with clang warns about an unused variable in
nir_lower_packing.

Tracking progress was added to nir_lower_packing in
adb157ddfd52ab495878a8b2b1bf70586d773aa2 but the function
will ignore the progress from impl calls and always return
false.

This patch changes it to return the progress. It fixes the
warning and should enable validation calls in NIR_PASS when
progress is made.

Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Fixes: adb157ddfd52 "nir: Return progress from nir_lower_64bit_pack()"
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11615>
src/compiler/nir/nir_lower_packing.c