vulkan: Add a vk_video_session_finish() helper
It's always better if init/finish come in pairs. Reviewed-by: Dave Airlie <airlied@redhat.com> Reviewed-by: Hyunjun Ko <zzoon@igalia.com> Reviewed-by: David Rosca <david.rosca@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36646>
This commit is contained in:
committed by
Marge Bot
parent
22a1f34728
commit
6ece4f3fa0
@@ -119,6 +119,12 @@ vk_video_session_init(struct vk_device *device,
|
||||
return VK_SUCCESS;
|
||||
}
|
||||
|
||||
void
|
||||
vk_video_session_finish(struct vk_video_session *vid)
|
||||
{
|
||||
vk_object_base_finish(&vid->base);
|
||||
}
|
||||
|
||||
static void
|
||||
vk_video_deep_copy_h264_sps(struct vk_video_h264_sps *dst,
|
||||
const StdVideoH264SequenceParameterSet *src)
|
||||
|
||||
@@ -188,6 +188,8 @@ VkResult vk_video_session_init(struct vk_device *device,
|
||||
struct vk_video_session *vid,
|
||||
const VkVideoSessionCreateInfoKHR *create_info);
|
||||
|
||||
void vk_video_session_finish(struct vk_video_session *vid);
|
||||
|
||||
void *vk_video_session_parameters_create(struct vk_device *device,
|
||||
const VkVideoSessionParametersCreateInfoKHR *create_info,
|
||||
const VkAllocationCallbacks *alloc,
|
||||
|
||||
Reference in New Issue
Block a user