|
|
@ -438,7 +438,7 @@ VkImage vulkan_import_dmabuf(struct wlr_vk_renderer *renderer,
|
|
|
|
img_info.arrayLayers = 1;
|
|
|
|
img_info.arrayLayers = 1;
|
|
|
|
img_info.samples = VK_SAMPLE_COUNT_1_BIT;
|
|
|
|
img_info.samples = VK_SAMPLE_COUNT_1_BIT;
|
|
|
|
img_info.sharingMode = VK_SHARING_MODE_EXCLUSIVE;
|
|
|
|
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.extent = (VkExtent3D) { attribs->width, attribs->height, 1 };
|
|
|
|
img_info.usage = for_render ?
|
|
|
|
img_info.usage = for_render ?
|
|
|
|
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT :
|
|
|
|
VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT :
|
|
|
|