mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 10:08:08 +02:00
anv/image: Add a surface usage bit for video decoding
Signed-off-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22202>
This commit is contained in:
parent
b08614b96b
commit
b4b31828e0
2 changed files with 5 additions and 0 deletions
|
|
@ -1116,6 +1116,7 @@ typedef uint64_t isl_surf_usage_flags_t;
|
|||
#define ISL_SURF_USAGE_STAGING_BIT (1u << 14)
|
||||
#define ISL_SURF_USAGE_CPB_BIT (1u << 15)
|
||||
#define ISL_SURF_USAGE_PROTECTED_BIT (1u << 16)
|
||||
#define ISL_SURF_USAGE_VIDEO_DECODE_BIT (1u << 17)
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -226,6 +226,10 @@ choose_isl_surf_usage(VkImageCreateFlags vk_create_flags,
|
|||
if (vk_usage & VK_IMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHR)
|
||||
isl_usage |= ISL_SURF_USAGE_CPB_BIT;
|
||||
|
||||
if (vk_usage & VK_IMAGE_USAGE_VIDEO_DECODE_DST_BIT_KHR ||
|
||||
vk_usage & VK_IMAGE_USAGE_VIDEO_DECODE_DPB_BIT_KHR)
|
||||
isl_usage |= ISL_SURF_USAGE_VIDEO_DECODE_BIT;
|
||||
|
||||
if (vk_create_flags & VK_IMAGE_CREATE_CUBE_COMPATIBLE_BIT)
|
||||
isl_usage |= ISL_SURF_USAGE_CUBE_BIT;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue