etnaviv: rework modifier queries
authorLucas Stach <l.stach@pengutronix.de>
Wed, 13 Jul 2022 18:14:57 +0000 (20:14 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 3 Nov 2022 20:24:41 +0000 (20:24 +0000)
commitf1f89b2e988446ef83b3da4fc8a0a657392e99b5
treeb31f345c15b08f7cdb830a8958d812b0c47dfe3f
parenta4193b859444f5092101cd3a14479029cb78c1ae
etnaviv: rework modifier queries

Rework the loops in the modifier queries to make them a bit more
straight-forward and use less local variables. Those loops get
much more complex as more variations of the modifiers get added,
so the simplification done here is an attempt to keep the complexity
at bay.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Tested-by: Guido Günther <agx@sigxcpu.org>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9780>
src/gallium/drivers/etnaviv/etnaviv_screen.c