gallium: pipe: add get_decoder_fence vfunc
authorDaniel Almeida <daniel.almeida@collabora.com>
Sun, 4 Dec 2022 12:12:09 +0000 (09:12 -0300)
committerMarge Bot <emma+marge@anholt.net>
Wed, 11 Jan 2023 19:34:33 +0000 (19:34 +0000)
commit9d583719e913b1ec9e5bc4d2f7606bdb27fe3f67
treef3ca706a7df3a9cdb7fe032e80360d8ee5ea52f2
parent1b8bed38eb40c71a9973d6ea7c9294fa077bee7a
gallium: pipe: add get_decoder_fence vfunc

Add a get_decoder_fence vfunc that can be used to query the status
of the previous decode 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.

Signed-off-by: Daniel Almeida <daniel.almeida@collabora.com>
Reviewed-by: Leo Liu <leo.liu@amd.com>
Reviewed-by: Boyuan Zhang <Boyuan.Zhang@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20133>
src/gallium/include/pipe/p_video_codec.h
src/gallium/include/pipe/p_video_state.h