From: Jason Ekstrand Date: Wed, 8 Jul 2015 18:51:12 +0000 (-0700) Subject: vk/vulkan.h: Add packing parameters to BufferImageCopy X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=aae45ab583aec2c62503fc692d34f987b395ec81;p=mesa.git vk/vulkan.h: Add packing parameters to BufferImageCopy --- diff --git a/include/vulkan/vulkan.h b/include/vulkan/vulkan.h index 99489fe58cc..2c45b201e15 100644 --- a/include/vulkan/vulkan.h +++ b/include/vulkan/vulkan.h @@ -1741,6 +1741,8 @@ typedef struct { typedef struct { VkDeviceSize bufferOffset; + uint32_t bufferRowLength; + uint32_t bufferImageHeight; VkImageSubresource imageSubresource; VkOffset3D imageOffset; VkExtent3D imageExtent; diff --git a/src/vulkan/meta.c b/src/vulkan/meta.c index 37c8421a46e..b759510e992 100644 --- a/src/vulkan/meta.c +++ b/src/vulkan/meta.c @@ -995,6 +995,11 @@ void anv_CmdCopyBufferToImage( meta_prepare_blit(cmd_buffer, &saved_state); for (unsigned r = 0; r < regionCount; r++) { + if (pRegions[r].bufferRowLength != 0) + anv_finishme("bufferRowLength not supported in CopyBufferToImage"); + if (pRegions[r].bufferImageHeight != 0) + anv_finishme("bufferImageHeight not supported in CopyBufferToImage"); + struct anv_image *src_image; anv_CreateImage(vk_device, &(VkImageCreateInfo) { @@ -1087,6 +1092,11 @@ void anv_CmdCopyImageToBuffer( meta_prepare_blit(cmd_buffer, &saved_state); for (unsigned r = 0; r < regionCount; r++) { + if (pRegions[r].bufferRowLength != 0) + anv_finishme("bufferRowLength not supported in CopyBufferToImage"); + if (pRegions[r].bufferImageHeight != 0) + anv_finishme("bufferImageHeight not supported in CopyBufferToImage"); + struct anv_surface_view src_view; anv_image_view_init(&src_view, cmd_buffer->device, &(VkImageViewCreateInfo) {