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:
Sil Vilerino 2023-11-17 17:56:47 -05:00 committed by Marge Bot
parent 3ab25d6fb3
commit d9bbae6a0c

View file

@ -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.
*/