pipe: Add video fence_wait

This will be used to replace get_*_fence functions.

Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-By: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31442>
This commit is contained in:
David Rosca 2024-09-30 13:24:56 +02:00 committed by Marge Bot
parent ac00d97e31
commit 3cec5a84ca

View file

@ -166,6 +166,20 @@ struct pipe_video_codec
struct pipe_fence_handle *fence,
uint64_t timeout);
/**
* Wait for fence.
*
* Can be used to query the status of the previous job denoted by
* 'fence' given 'timeout'.
*
* A pointer to a fence pointer can be passed to the codecs before the
* end_frame vfunc and the codec should then be responsible for allocating a
* fence on command stream submission.
*/
int (*fence_wait)(struct pipe_video_codec *codec,
struct pipe_fence_handle *fence,
uint64_t timeout);
/**
* Destroy fence.
*/