diff options
author | Nanley Chery <[email protected]> | 2016-01-26 16:19:33 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-01-27 15:12:42 -0800 |
commit | 010ab34839e7bf118b8f5dc974f4d348c77fbc37 (patch) | |
tree | 7a14714247f88597fc2be1abf2c05d175b90deb1 | |
parent | 2fb8b859f696240177f7ab2dc61b9023d7ab0ea4 (diff) |
anv/meta: Set depth to 0 for buffer image in CopyBufferToImage()
The buffer image is a flat 2D surface. Each surface represents an
array/depth layer, therefore, the Z-offset is 0 when blitting.
-rw-r--r-- | src/vulkan/anv_meta.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vulkan/anv_meta.c b/src/vulkan/anv_meta.c index 6680ef9c20d..cbdb2fa1889 100644 --- a/src/vulkan/anv_meta.c +++ b/src/vulkan/anv_meta.c @@ -1350,7 +1350,6 @@ void anv_CmdCopyBufferToImage( }, cmd_buffer); - VkOffset3D src_offset = { 0, 0, slice }; VkOffset3D dest_offset_el = meta_region_offset_el(dest_image, &pRegions[r].imageOffset); dest_offset_el.z = 0; @@ -1360,7 +1359,7 @@ void anv_CmdCopyBufferToImage( meta_emit_blit(cmd_buffer, src_image, &src_iview, - src_offset, + (VkOffset3D){0, 0, 0}, img_extent_el, dest_image, &dest_iview, |