zink: use general-layout when blitting to/from same resource
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 25 May 2020 10:06:04 +0000 (12:06 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 27 May 2020 09:01:17 +0000 (09:01 +0000)
commitdd2bd68fa69124c86cd008b256d06f44fab8e6cd
tree1c7b74890eb454b5bef40dc492dd60cc1e0ed027
parentd9eaac02e53944799fbadf6ab7ff6cc725b0483a
zink: use general-layout when blitting to/from same resource

This avoids a validator warning when for instance generating mipmaps.

Fixes: d2bb63c8d4c ("zink: Use optimal layout instead of general. Reduces valid layer warnings. Fixes RADV image noise.")
Reviewed-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5199>
src/gallium/drivers/zink/zink_blit.c