From 3ecf2a0518c076c4af6ebc238e4570d0e8deea4a Mon Sep 17 00:00:00 2001 From: Lionel Landwerlin Date: Thu, 7 Nov 2024 00:29:29 +0200 Subject: [PATCH] anv: fix extent computation in image->image host copies Signed-off-by: Lionel Landwerlin Fixes: 0317c44872 ("anv: add VK_EXT_host_image_copy support") Reviewed-by: Ivan Briano Reviewed-by: Nanley Chery Part-of: --- src/intel/vulkan/anv_image_host_copy.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/intel/vulkan/anv_image_host_copy.c b/src/intel/vulkan/anv_image_host_copy.c index 67ca3676292..18799dbbf0b 100644 --- a/src/intel/vulkan/anv_image_host_copy.c +++ b/src/intel/vulkan/anv_image_host_copy.c @@ -452,10 +452,8 @@ anv_CopyImageToImageEXT( .y = dst_offset_el.y + y_el, }; VkExtent3D extent = { - .width = MIN2(extent_el.width - src_offset.x, - tile_width_el), - .height = MIN2(extent_el.height - src_offset.y, - tile_height_el), + .width = MIN2(extent_el.width - x_el, tile_width_el), + .height = MIN2(extent_el.height - y_el, tile_height_el), .depth = 1, };