util/format: Simplify the generated unpack code.
authorEric Anholt <eric@anholt.net>
Mon, 11 Nov 2019 22:43:14 +0000 (14:43 -0800)
committerMarge Bot <eric+marge@anholt.net>
Fri, 15 Jan 2021 18:58:50 +0000 (18:58 +0000)
commit8e2e63748057db34cd8103024764fbc8ee7bc945
treeff098b84c5b3bd25fbe4e1f53c477f119fefeafb
parent92e8e94ee9ff5bf584196bb9bce52f55b734fc78
util/format: Simplify the generated unpack code.

We were declaring the temps, then in the same order declaring
assignments to those temps.  The code is more legible (and shorter)
with the assignments moved in place.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6297>
src/util/format/u_format_pack.py