[Mesa-dev] [PATCH] radv: Fix copying from 3D images starting at non-zero depth.
Bas Nieuwenhuizen
bas at basnieuwenhuizen.nl
Sun Mar 4 14:50:41 UTC 2018
Fixes: f4e499ec79 "radv: add initial non-conformant radv vulkan driver"
---
src/amd/vulkan/radv_meta_copy.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/amd/vulkan/radv_meta_copy.c b/src/amd/vulkan/radv_meta_copy.c
index 7f7ef22efc..2a3faa64f1 100644
--- a/src/amd/vulkan/radv_meta_copy.c
+++ b/src/amd/vulkan/radv_meta_copy.c
@@ -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;
--
2.16.1
More information about the mesa-dev
mailing list