Module: Mesa
Branch: main
Commit: e8a96e6ba09e99a1bd1f1b262388cd6ecc1716d1
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=e8a96e6ba09e99a1bd1f1b262388cd6ecc1716d1

Author: Lionel Landwerlin <[email protected]>
Date:   Tue Dec  5 13:25:16 2023 +0200

vulkan/runtime: retain video session creation flags

Signed-off-by: Lionel Landwerlin <[email protected]>
Reviewed-by: José Roberto de Souza <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26519>

---

 src/vulkan/runtime/vk_video.c | 1 +
 src/vulkan/runtime/vk_video.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/vulkan/runtime/vk_video.c b/src/vulkan/runtime/vk_video.c
index 2ec84b3ff1b..61e4e809daf 100644
--- a/src/vulkan/runtime/vk_video.c
+++ b/src/vulkan/runtime/vk_video.c
@@ -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;
diff --git a/src/vulkan/runtime/vk_video.h b/src/vulkan/runtime/vk_video.h
index 8ecb10c362b..81641c53533 100644
--- a/src/vulkan/runtime/vk_video.h
+++ b/src/vulkan/runtime/vk_video.h
@@ -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;

Reply via email to