[gtk/gbsneto/vulkan-fixes: 5/6] 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: 5/6] vulkan/renderpass: Use GENERAL for initial layout
- Date: Sat, 5 Oct 2019 00:27:39 +0000 (UTC)
commit 0ce265523cdfa1c3a362bad17727508afd67f0af
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]