etnaviv: handle compressed texture formats in etna_layout_multiple
authorLucas Stach <l.stach@pengutronix.de>
Thu, 13 Oct 2022 16:56:14 +0000 (18:56 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 27 Oct 2022 14:33:15 +0000 (14:33 +0000)
commit391ccff2506f2c54286ab0675e3a53acc3b4b0b6
tree2f6160570b200bbd9afeffe47059829b37123cc6
parent88d8775f9ecd824f82809fc8ef84101168ed11d3
etnaviv: handle compressed texture formats in etna_layout_multiple

Instead of special casing compressed formats in the caller, handle
them properly when working out the resource alignment. For good measure
add an assert that the layout is linear, as expected.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19066>
src/gallium/drivers/etnaviv/etnaviv_resource.c