iris: Avoid unnecessary resolves on transfer maps
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 26 Apr 2019 17:44:18 +0000 (10:44 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Aug 2019 01:31:17 +0000 (18:31 -0700)
commit2d799250346331a93b21678dc5605cff74dfa3a1
tree752a8cbc542b3c9ddd7c2cd825ed1738f956874c
parent136629a1e3aace12297ff61c2ee32caa21aba99b
iris: Avoid unnecessary resolves on transfer maps

We were always resolving the buffer as if we were accessing it via
CPU maps, which don't understand any auxiliary surfaces.  But we often
copy to a temporary using BLORP, which understands compression just
fine.  So we can avoid the resolve, and accelerate the copy as well.

Fixes: 9d1334d2a0f ("iris: Use copy_region and staging resources to avoid transfer stalls")
Reviewed-by: Rafael Antognolli <rafael.antognolli@intel.com>
src/gallium/drivers/iris/iris_resource.c
src/gallium/drivers/iris/iris_resource.h