vk/meta: Fix buffer copy extents
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 May 2015 22:11:21 +0000 (15:11 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 20 May 2015 23:20:04 +0000 (16:20 -0700)
src/vulkan/meta.c

index 979655cb4823d7f3ab1705784de4a6c374fcb969..f1524f9db2808e6f023616fc36fadfc4250181be 100644 (file)
@@ -711,10 +711,10 @@ void anv_CmdCopyBuffer(
       meta_emit_blit(cmd_buffer,
                      &src_view,
                      (VkOffset3D) { 0, 0, 0 },
-                     (VkExtent3D) { pRegions[r].copySize, 0, 0 },
+                     (VkExtent3D) { pRegions[r].copySize, 1, 1 },
                      &dest_view,
                      (VkOffset3D) { 0, 0, 0 },
-                     (VkExtent3D) { pRegions[r].copySize, 0, 0 });
+                     (VkExtent3D) { pRegions[r].copySize, 1, 1 });
    }
 
    meta_finish_blit(cmd_buffer, &saved_state);