etnaviv: always use RS align when GPU has TEXTURE_HALIGN feature
authorLucas Stach <l.stach@pengutronix.de>
Thu, 24 Nov 2022 15:39:35 +0000 (16:39 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 25 Nov 2022 19:06:28 +0000 (19:06 +0000)
commitfd06b313b010adb6c6e9a7c30ab55163397f4d47
treec0e9041979ae51f1693cfb97bd681263a4b53474
parent20cdc35fdbb30595f455febb96a0dbed51efd4f2
etnaviv: always use RS align when GPU has TEXTURE_HALIGN feature

Due to a logic bug we didn't always up-align the resource when the GPU
has the TEXTURE_HALIGN feature, which broke the RS blit when we need
to blit into a sampler shadow from a multi-tiled render target.

Fixes: 735718ed33b2 ("etnaviv: move etna_layout_multiple into etnaviv_resource.c")
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/19991>
src/gallium/drivers/etnaviv/etnaviv_resource.c