mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 13:30:11 +01:00
vulkan: complete the usage flags for video layouts
Otherwise Vulkan decoding with FFmpeg crashes on anv. Reviewed-by: Dave Airlie <airlied@redhat.com> Cc: mesa-stable Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23184>
This commit is contained in:
parent
9c26a6b3bb
commit
0e886a93ce
1 changed files with 7 additions and 1 deletions
|
|
@ -962,15 +962,21 @@ vk_image_layout_to_usage_flags(VkImageLayout layout,
|
|||
VK_IMAGE_USAGE_ATTACHMENT_FEEDBACK_LOOP_BIT_EXT;
|
||||
}
|
||||
|
||||
case VK_IMAGE_LAYOUT_MAX_ENUM:
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_DST_KHR:
|
||||
return VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR;
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_SRC_KHR:
|
||||
return VK_IMAGE_USAGE_VIDEO_DECODE_SRC_BIT_KHR;
|
||||
case VK_IMAGE_LAYOUT_VIDEO_DECODE_DPB_KHR:
|
||||
return VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR;
|
||||
#ifdef VK_ENABLE_BETA_EXTENSIONS
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_DST_KHR:
|
||||
return VK_IMAGE_USAGE_VIDEO_ENCODE_DST_BIT_KHR;
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_SRC_KHR:
|
||||
return VK_IMAGE_USAGE_VIDEO_ENCODE_SRC_BIT_KHR;
|
||||
case VK_IMAGE_LAYOUT_VIDEO_ENCODE_DPB_KHR:
|
||||
return VK_IMAGE_USAGE_VIDEO_ENCODE_DPB_BIT_KHR;
|
||||
#endif
|
||||
case VK_IMAGE_LAYOUT_MAX_ENUM:
|
||||
unreachable("Invalid image layout.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue