etnaviv: optimize sampler source update
authorLucas Stach <l.stach@pengutronix.de>
Fri, 18 Nov 2022 16:58:02 +0000 (17:58 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 14 Jul 2023 14:21:35 +0000 (14:21 +0000)
commitfdedc0b3b37c29ac2d75cd0cf6795323d3944b65
treeac706e89b681c019b61a18009c3c0a41ccc1bb65
parent995e34840f03598fd71bc8eaef32e2e470b5002f
etnaviv: optimize sampler source update

Now that we track age at the resource level we can optimize
the sampler source update by only copying/flushing the levels
that are actually used by the sampler.

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