etnaviv: check for valid TS as condition to create the staging resource
authorLucas Stach <l.stach@pengutronix.de>
Fri, 14 Jul 2023 16:09:59 +0000 (18:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 09:27:13 +0000 (09:27 +0000)
commitf6222a4b927f2a7b6e8d31f9f0b17bfb6a319261
treeb5262410b10290d67bbcf2787eb35b38b7be9975
parent78a999ecfac9f4fe752efb16a8535c6a317a2d1a
etnaviv: check for valid TS as condition to create the staging resource

Presence of the TS buffer doesn't necessarily mean that there is valid
TS information that we need to take into account. This is pretty harmless
as the blit into the staging resource will just ignore invalid TS data
and most TS enabled resources are (super-)tiled anyways, which we will
handle with a staging resource nonetheless, but better not keep this bad
example around and replace with the appropriate check.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <cgmeiner@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24164>
src/gallium/drivers/etnaviv/etnaviv_transfer.c