[gtk: 1/2] vulkan: Set initial layout to undefined




commit 1c587c7d7fb51cc9c41ec011c2492aa58d8df806
Author: TestingPlant <49836-TestingPlant users noreply gitlab gnome org>
Date:   Sun May 8 05:08:03 2022 +0000

    vulkan: Set initial layout to undefined
    
    Having the initial layout set to VK_IMAGE_LAYOUT_GENERAL causes issues
    when going from the final layout to the initial layout since the image
    layout is expected to be the general layout. Setting the initial layout
    to undefined doesn't have this restriction.

 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 a6b427a632..34b035245a 100644
--- a/gsk/vulkan/gskvulkanrenderpass.c
+++ b/gsk/vulkan/gskvulkanrenderpass.c
@@ -170,7 +170,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_GENERAL,
+                                              .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED,
                                               .finalLayout = final_layout
                                            }
                                         },


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