iris: Use staging blits for reads from uncached buffers.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 20 May 2021 07:14:53 +0000 (00:14 -0700)
committerMarge Bot <eric+marge@anholt.net>
Wed, 2 Jun 2021 21:18:00 +0000 (21:18 +0000)
commit643c4ade4c39c8ba8c63651ee4a1549eeb96fdec
tree6fe02aa41995ace14255bbe29a0c4cbd0142e51f
parent49070038f432a7266ce99898732e0a878438774f
iris: Use staging blits for reads from uncached buffers.

If we're doing CPU reads of a resource that doesn't have CPU caches
enabled for the mapping (say, in device local memory, or WC mapped),
then blit it to a temporary that does have those caches enabled.

Acked-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10941>
src/gallium/drivers/iris/iris_resource.c