mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-14 22:18:20 +02:00
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:
parent
625ad5bc52
commit
3ecf2a0518
1 changed files with 2 additions and 4 deletions
|
|
@ -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,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue