From: Józef Kucia jkucia@codeweavers.com
Signed-off-by: Józef Kucia jkucia@codeweavers.com --- libs/vkd3d/command.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index c57645f4d89d..3cbf343a8d55 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -2551,9 +2551,8 @@ static void vk_image_buffer_copy_from_d3d12(VkBufferImageCopy *copy, } else { - copy->imageExtent.width = footprint->Footprint.Width; - copy->imageExtent.height = footprint->Footprint.Height; - copy->imageExtent.depth = footprint->Footprint.Depth; + unsigned int miplevel = copy->imageSubresource.mipLevel; + vk_extent_3d_from_d3d12_miplevel(©->imageExtent, image_desc, miplevel); } }