dzn: Support native image copies when formats are compatible
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 30 Jun 2022 11:17:12 +0000 (04:17 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 6 Jul 2022 06:15:46 +0000 (06:15 +0000)
commitd132ec924d462a4f1a4cb2ba317d4d29c60931aa
treea1553d06385c8de1612fd1f21f80a3c975898934
parent53a352e1cfd38226634f857773899ef2d356b213
dzn: Support native image copies when formats are compatible

CopyTextureRegion() works fine if the formats belong to the
same group (matching the same _TYPELESS type), so let's avoid
creating a temporary resource in that case.

Reviewed-by: Jesse Natalie <jenatali@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17368>
src/microsoft/vulkan/dzn_cmd_buffer.c