summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_blorp.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-08-27 12:57:01 -0700
committerJason Ekstrand <[email protected]>2016-09-13 12:40:12 -0700
commit58593f24cb3400c558743f5e9bbde7ca2698d0e2 (patch)
tree1ebcfccf8467fb09dc5bd54432c1e43e30b5f9e1 /src/intel/vulkan/anv_blorp.c
parentf07f44a5bc092f4a8fbef772de2c4af224094b01 (diff)
anv: Use blorp for CopyBufferToImage
Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Anuj Phogat <[email protected]> Reviewed-by: Nanley Chery <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_blorp.c')
-rw-r--r--src/intel/vulkan/anv_blorp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_blorp.c b/src/intel/vulkan/anv_blorp.c
index a838b55bfe0..5fa6699e9fe 100644
--- a/src/intel/vulkan/anv_blorp.c
+++ b/src/intel/vulkan/anv_blorp.c
@@ -254,6 +254,22 @@ copy_buffer_to_image(struct anv_cmd_buffer *cmd_buffer,
blorp_batch_finish(&batch);
}
+void anv_CmdCopyBufferToImage(
+ VkCommandBuffer commandBuffer,
+ VkBuffer srcBuffer,
+ VkImage dstImage,
+ VkImageLayout dstImageLayout,
+ uint32_t regionCount,
+ const VkBufferImageCopy* pRegions)
+{
+ ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
+ ANV_FROM_HANDLE(anv_buffer, src_buffer, srcBuffer);
+ ANV_FROM_HANDLE(anv_image, dst_image, dstImage);
+
+ copy_buffer_to_image(cmd_buffer, src_buffer, dst_image,
+ regionCount, pRegions, true);
+}
+
void anv_CmdCopyImageToBuffer(
VkCommandBuffer commandBuffer,
VkImage srcImage,