hwcontext_vulkan: fix imported image bitmask

This commit is contained in:
Lynne 2020-03-17 13:08:06 +00:00
parent d64cbd4fda
commit ecc3dceff4
1 changed files with 2 additions and 1 deletions

View File

@ -1758,7 +1758,8 @@ static int vulkan_map_from_drm_frame_desc(AVHWFramesContext *hwfc, AVVkFrame **f
.extent.depth = 1, .extent.depth = 1,
.mipLevels = 1, .mipLevels = 1,
.arrayLayers = 1, .arrayLayers = 1,
.flags = VK_IMAGE_CREATE_ALIAS_BIT | signal_p ? VK_IMAGE_CREATE_DISJOINT_BIT : 0x0, .flags = VK_IMAGE_CREATE_ALIAS_BIT |
(signal_p ? VK_IMAGE_CREATE_DISJOINT_BIT : 0x0),
.tiling = f->tiling, .tiling = f->tiling,
.initialLayout = VK_IMAGE_LAYOUT_UNDEFINED, /* specs say so */ .initialLayout = VK_IMAGE_LAYOUT_UNDEFINED, /* specs say so */
.usage = DEFAULT_USAGE_FLAGS, .usage = DEFAULT_USAGE_FLAGS,