vulkan/runtime: retain video session creation flags

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26519>
This commit is contained in:
Lionel Landwerlin 2023-12-05 13:25:16 +02:00 committed by Marge Bot
parent 22c60ea384
commit e8a96e6ba0
2 changed files with 2 additions and 0 deletions

View file

@ -36,6 +36,7 @@ vk_video_session_init(struct vk_device *device,
{
vk_object_base_init(device, &vid->base, VK_OBJECT_TYPE_VIDEO_SESSION_KHR);
vid->flags = create_info->flags;
vid->op = create_info->pVideoProfile->videoCodecOperation;
vid->max_coded = create_info->maxCodedExtent;
vid->picture_format = create_info->pictureFormat;

View file

@ -31,6 +31,7 @@ extern "C" {
struct vk_video_session {
struct vk_object_base base;
VkVideoSessionCreateFlagsKHR flags;
VkVideoCodecOperationFlagsKHR op;
VkExtent2D max_coded;
VkFormat picture_format;