etnaviv: retarget transfer to render resource when necessary
authorLucas Stach <l.stach@pengutronix.de>
Thu, 14 May 2020 10:59:01 +0000 (12:59 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 15 May 2020 18:29:10 +0000 (20:29 +0200)
commit9d1821adf0bc51958becf116d6df5c65514d58b6
tree0a57663c0af1dc534110bf0479194a976a7669e9
parentbb3545a6ee419c4802ac4153eb690a93dc2f339d
etnaviv: retarget transfer to render resource when necessary

If we have a separate render resource, it may contain more up-to-date
data than what is available in the base resource, so we need to retarget
the transfer to this resource. As the most likely reason for the
existence of the render resource is a multi-tiled render layout we need
to allow this transfer to go through the resolve/blit copy path, as we
can't de-/tile those layouts in software.

Fixes: b96277653033 (etnaviv: rework compatible render base)
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Jonathan Marek <jonathan@marek.ca>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5051>
src/gallium/drivers/etnaviv/etnaviv_transfer.c