mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-01 03:10:09 +01:00
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:
parent
ac00d97e31
commit
3cec5a84ca
1 changed files with 14 additions and 0 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue