summaryrefslogtreecommitdiff
path: root/gsk/vulkan
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-10-04 17:55:25 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2019-10-05 12:13:22 -0300
commita2b49322fb86f22a4f851e1b2b6d06467df2de4a (patch)
tree6d26db13fb5071716085e6020e711a2767fbb890 /gsk/vulkan
parent0b2006b74f0cc659625986059e172086a3b6d548 (diff)
downloadgtk+-a2b49322fb86f22a4f851e1b2b6d06467df2de4a.tar.gz
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.
Diffstat (limited to 'gsk/vulkan')
-rw-r--r--gsk/vulkan/gskvulkanrenderpass.c2
1 files changed, 1 insertions, 1 deletions
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
}
},