etnaviv: allow sampler TS even if the resource is flushed
authorLucas Stach <l.stach@pengutronix.de>
Fri, 18 Nov 2022 17:00:58 +0000 (18:00 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Jul 2023 14:21:35 +0000 (14:21 +0000)
commitdce4aa83e4f07aba08bbdf70889e1be74c9c7b27
tree4b6bf3ceccc6e46388d2d7935d93cd156e720876
parentfdedc0b3b37c29ac2d75cd0cf6795323d3944b65
etnaviv: allow sampler TS even if the resource is flushed

As long as the TS is valid we can use the tile status to optimize the
sample fetch, even if the resource has been flushed for any reason.
Do the check for valid TS first when checking whether to enable sampler
TS to avoid all the other checks when TS isn't usable.

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/19964>
src/gallium/drivers/etnaviv/etnaviv_texture.c