[gtk/gbsneto/vulkan-fixes: 2/3] vulkan/renderpass: Use GENERAL for initial layour



commit c6d68c23be8bb6bd844e0ec173bde4e4223fd0d1
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Fri Oct 4 17:55:25 2019 -0300

    vulkan/renderpass: Use GENERAL for initial layour
    
    UNDEFINED initial layouts may not preserve the contents
    of the attachment after transitioning the layout. We want
    them to be preserved because we do partial rendering.
    
    Use GENERAL as the initial layout for render passes.

 gsk/vulkan/gskvulkanrenderpass.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gsk/vulkan/gskvulkanrenderpass.c b/gsk/vulkan/gskvulkanrenderpass.c
index 00fd658d8b..414d8b55d4 100644
--- a/gsk/vulkan/gskvulkanrenderpass.c
+++ b/gsk/vulkan/gskvulkanrenderpass.c
@@ -172,7 +172,7 @@ gsk_vulkan_render_pass_new (GdkVulkanContext  *context,
                                               .samples = VK_SAMPLE_COUNT_1_BIT,
                                               .loadOp = VK_ATTACHMENT_LOAD_OP_CLEAR,
                                               .storeOp = VK_ATTACHMENT_STORE_OP_STORE,
-                                              .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
+                                              .initialLayout = VK_IMAGE_LAYOUT_GENERAL,
                                               .finalLayout = final_layout
                                            }
                                         },


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]