mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
radv: Fix copying from 3D images starting at non-zero depth.
Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver"
Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
bb742b6ebf
commit
eea20d59ab
1 changed files with 3 additions and 0 deletions
|
|
@ -417,6 +417,9 @@ meta_copy_image(struct radv_cmd_buffer *cmd_buffer,
|
|||
.height = img_extent_el.height,
|
||||
};
|
||||
|
||||
if (src_image->type == VK_IMAGE_TYPE_3D)
|
||||
b_src.layer = src_offset_el.z;
|
||||
|
||||
if (dest_image->type == VK_IMAGE_TYPE_3D)
|
||||
b_dst.layer = dst_offset_el.z;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue