dzn: Fix copies of block-based formats
authorBoris Brezillon <boris.brezillon@collabora.com>
Tue, 28 Jun 2022 10:00:50 +0000 (12:00 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Wed, 29 Jun 2022 16:54:42 +0000 (09:54 -0700)
commitbb8ca4bafe2199fb4a9584042ed0748d2b9b2dfa
treec5889dd826b72e40801e98ef49f1985e404c25f2
parente3cf48e8f596096263cd97f52e61ebc8aebbee78
dzn: Fix copies of block-based formats

D3D12 wants Width, Height and Depth to be aligned on the block width,
height and depth size. But Vulkan allows the width, height or depth to
be unaligned at the image boundary if image.{width,height,depth} is
not aligned.

Let's explicitly align things in the copy paths.

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