aboutsummaryrefslogtreecommitdiff
path: root/render/vulkan/texture.c
diff options
context:
space:
mode:
authornyorain <nyorain@gmail.com>2021-12-26 13:21:54 +0100
committernyorain <nyorain@gmail.com>2021-12-26 13:21:54 +0100
commit9988eb3378dbc3301059aa9b5e1ff476354cb92b (patch)
tree3d47b49f5b6cac5cef409a9759a7d62c3be52bf6 /render/vulkan/texture.c
parent812951f5bc47f502429406e49f4e24f377b7799b (diff)
vulkan: Fix imported image layout
Diffstat (limited to 'render/vulkan/texture.c')
-rw-r--r--render/vulkan/texture.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/vulkan/texture.c b/render/vulkan/texture.c
index 76c37011..b705603c 100644
--- a/render/vulkan/texture.c
+++ b/render/vulkan/texture.c
@@ -438,7 +438,7 @@ VkImage vulkan_import_dmabuf(struct wlr_vk_renderer *renderer,
img_info.arrayLayers = 1;
img_info.samples = VK_SAMPLE_COUNT_1_BIT;
img_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
- img_info.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED;
+ img_info.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED;
img_info.extent = (VkExtent3D) { attribs->width, attribs->height, 1 };
img_info.usage = for_render ?
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT :