diff options
author | TestingPlant <49836-TestingPlant@users.noreply.gitlab.gnome.org> | 2022-05-08 05:08:03 +0000 |
---|---|---|
committer | TestingPlant <49836-TestingPlant@users.noreply.gitlab.gnome.org> | 2022-05-08 05:39:36 +0000 |
commit | 1c587c7d7fb51cc9c41ec011c2492aa58d8df806 (patch) | |
tree | 7038c1c2909137051261bb88050d382c5fda9f64 /gsk | |
parent | 9e6855cdb813f8c13168fcaea00ef5e2f77d3472 (diff) | |
download | gtk+-1c587c7d7fb51cc9c41ec011c2492aa58d8df806.tar.gz |
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.
Diffstat (limited to 'gsk')
-rw-r--r-- | gsk/vulkan/gskvulkanrenderpass.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 } }, |