summaryrefslogtreecommitdiff
path: root/gsk/vulkan
diff options
context:
space:
mode:
authorTestingPlant <49836-TestingPlant@users.noreply.gitlab.gnome.org>2022-05-08 05:08:03 +0000
committerTestingPlant <49836-TestingPlant@users.noreply.gitlab.gnome.org>2022-05-08 05:39:36 +0000
commit1c587c7d7fb51cc9c41ec011c2492aa58d8df806 (patch)
tree7038c1c2909137051261bb88050d382c5fda9f64 /gsk/vulkan
parent9e6855cdb813f8c13168fcaea00ef5e2f77d3472 (diff)
downloadgtk+-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/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 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
}
},