radv: Cleanup unused prime blit path.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Sun, 20 May 2018 23:31:49 +0000 (01:31 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Mon, 21 May 2018 08:33:41 +0000 (10:33 +0200)
Since we have the common WSI code, we use vkCmdCopyImageToBuffer
instead.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/amd/vulkan/radv_meta.h
src/amd/vulkan/radv_meta_copy.c

index 4a9abae30ac36176fb96e32ce2a1294f034b2c2e..35067f67124b7e4db7d912c07dacef26a6898567 100644 (file)
@@ -199,10 +199,6 @@ void radv_decompress_resolve_src(struct radv_cmd_buffer *cmd_buffer,
                                 uint32_t region_count,
                                 const VkImageResolve *regions);
 
-void radv_blit_to_prime_linear(struct radv_cmd_buffer *cmd_buffer,
-                              struct radv_image *image,
-                              struct radv_image *linear_image);
-
 uint32_t radv_clear_cmask(struct radv_cmd_buffer *cmd_buffer,
                          struct radv_image *image, uint32_t value);
 uint32_t radv_clear_dcc(struct radv_cmd_buffer *cmd_buffer,
index a4d359826617a723a833a6d55723fb9dc757ce21..3442b49fb9c5f7e86d5339223826243e0bbc7be0 100644 (file)
@@ -486,24 +486,3 @@ void radv_CmdCopyImage(
                        dest_image, destImageLayout,
                        regionCount, pRegions);
 }
-
-void radv_blit_to_prime_linear(struct radv_cmd_buffer *cmd_buffer,
-                              struct radv_image *image,
-                              struct radv_image *linear_image)
-{
-       struct VkImageCopy image_copy = { 0 };
-
-       image_copy.srcSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
-       image_copy.srcSubresource.layerCount = 1;
-
-       image_copy.dstSubresource.aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
-       image_copy.dstSubresource.layerCount = 1;
-
-       image_copy.extent.width = image->info.width;
-       image_copy.extent.height = image->info.height;
-       image_copy.extent.depth = 1;
-
-       meta_copy_image(cmd_buffer, image, VK_IMAGE_LAYOUT_GENERAL, linear_image,
-                       VK_IMAGE_LAYOUT_GENERAL,
-                       1, &image_copy);
-}