Module: Mesa
Branch: master
Commit: 913bfd42a311d70fba129e7a5b7d6d1cc89954be
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=913bfd42a311d70fba129e7a5b7d6d1cc89954be

Author: Samuel Pitoiset <[email protected]>
Date:   Wed Sep 27 23:09:08 2017 +0200

radv: set image view type when decompressing depth surfaces

This was missing.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>

---

 src/amd/vulkan/radv_meta_decompress.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_meta_decompress.c 
b/src/amd/vulkan/radv_meta_decompress.c
index 1395207b83..1a1a5612e2 100644
--- a/src/amd/vulkan/radv_meta_decompress.c
+++ b/src/amd/vulkan/radv_meta_decompress.c
@@ -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,

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to