radv: set image view type when decompressing depth surfaces
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 27 Sep 2017 21:09:08 +0000 (23:09 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 Sep 2017 06:52:38 +0000 (08:52 +0200)
This was missing.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_meta_decompress.c

index 1395207b839b02b59f898167b2bbd7404c9f18ee..1a1a5612e2b611fef7d7982ee13438d0652f7266 100644 (file)
@@ -337,6 +337,7 @@ static void radv_process_depth_image_inplace(struct radv_cmd_buffer *cmd_buffer,
                                     &(VkImageViewCreateInfo) {
                                             .sType = VK_STRUCTURE_TYPE_IMAGE_VIEW_CREATE_INFO,
                                             .image = radv_image_to_handle(image),
+                                            .viewType = radv_meta_get_view_type(image),
                                             .format = image->vk_format,
                                             .subresourceRange = {
                                                     .aspectMask = VK_IMAGE_ASPECT_DEPTH_BIT,