anv: fix extent computation in image->image host copies
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 0317c44872 ("anv: add VK_EXT_host_image_copy support")
Reviewed-by: Ivan Briano <ivan.briano@intel.com>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32027>
This commit is contained in:
committed by
Marge Bot
parent
625ad5bc52
commit
3ecf2a0518
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user