[gtk/gbsneto/vulkan-fixes: 3/4] vulkan/renderpass: Use GENERAL for initial layout
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gbsneto/vulkan-fixes: 3/4] vulkan/renderpass: Use GENERAL for initial layout
- Date: Sat, 5 Oct 2019 15:13:50 +0000 (UTC)
commit a2b49322fb86f22a4f851e1b2b6d06467df2de4a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Fri Oct 4 17:55:25 2019 -0300
vulkan/renderpass: Use GENERAL for initial layout
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]