mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-27 14:10:25 +01:00
pipe: Add get_feedback_fence for encode async waiting on pipe_feedback_fence
Reviewed-by: Ruijing Dong <ruijing.dong@amd.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26456>
This commit is contained in:
parent
3ab25d6fb3
commit
d9bbae6a0c
1 changed files with 12 additions and 0 deletions
|
|
@ -151,6 +151,18 @@ struct pipe_video_codec
|
|||
struct pipe_fence_handle *fence,
|
||||
uint64_t timeout);
|
||||
|
||||
/**
|
||||
* Gets a weak reference to a feedback fence.
|
||||
*
|
||||
* Can be used to wait on the pipe_fence_handle directly instead
|
||||
* of waiting on the get_feedback blocking call.
|
||||
*
|
||||
* Returns NULL if the feedback parameter does not have
|
||||
* a valid in-flight submitted frame
|
||||
*/
|
||||
struct pipe_fence_handle* (*get_feedback_fence)(struct pipe_video_codec *codec,
|
||||
void *feedback);
|
||||
|
||||
/**
|
||||
* Destroy fence.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue