iris: Drop copy format hacks from copy region based transfer path.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 24 Apr 2019 03:19:37 +0000 (20:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 23 Aug 2019 01:31:17 +0000 (18:31 -0700)
commit136629a1e3aace12297ff61c2ee32caa21aba99b
tree2a8e4d20aa9a272127f0361b2511a4d8d634d498
parent1cd13ccee7bc2733e7a56284dc02bdb1b1c40081
iris: Drop copy format hacks from copy region based transfer path.

This doesn't work for compressed formats, as the source texture and
temporary texture would have different block sizes.  (Forcing the driver
to always take the GPU path would expose the bug.)  Instead, just use
the source format for the temporary, and let blorp_copy deal with
overrides.

The one case where we can't do this is ASTC, because isl won't let us
create a linear ASTC surface.  Fall back to the CPU paths there for now.

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