diff options
author | Bas Nieuwenhuizen <[email protected]> | 2018-03-04 14:47:20 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-03-20 16:57:25 +0000 |
commit | d007df9e9b5d76d328996d5c1665eea779f2ed98 (patch) | |
tree | a848f8240503ce9570089f2d508b307d716bbf9c /src/amd | |
parent | e2f8a6503d88b161d0ce898eaa92d284afb1a5bf (diff) |
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 <[email protected]>
(cherry picked from commit eea20d59abd304953c8c1591612d45d3d94eb785)
Diffstat (limited to 'src/amd')
-rw-r--r-- | src/amd/vulkan/radv_meta_copy.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_meta_copy.c b/src/amd/vulkan/radv_meta_copy.c index f369a555c95..a0ef18ee708 100644 --- a/src/amd/vulkan/radv_meta_copy.c +++ b/src/amd/vulkan/radv_meta_copy.c @@ -428,6 +428,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; |