intel/blorp: resize src and dst surfaces separately
authorJason Ekstrand <jason@jlekstrand.net>
Wed, 15 Jan 2020 20:08:17 +0000 (14:08 -0600)
committerMarge Bot <eric+marge@anholt.net>
Fri, 24 Jan 2020 17:02:40 +0000 (17:02 +0000)
commit71c0f9e76dcac32067ba28b27a91ccf124b88111
tree8f9c3d992ae58a5a47784fb1d94118b62f071270
parent918f00eef8e6822ad541873fc8eade474021d340
intel/blorp: resize src and dst surfaces separately

When copying to an RGB surface, we treat it as an R only one of three
times the width, which may end up being larger than the maximum size
supported by the hardware and so it hits the shrink path. This forced
both source and destination surfaces to be shrunk, even though it's not
necessary for the former, and may even hit some assertions in some
cases, such as the surface being compressed.

Fixes several tests under dEQP-VK.api.copy_and_blit.core.image_to_image.dimensions.*

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3422>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3422>
src/intel/blorp/blorp_blit.c