radeonsi/vcn: Implement destroy_fence vfunc
authorDavid Rosca <nowrep@gmail.com>
Tue, 19 Sep 2023 09:00:12 +0000 (11:00 +0200)
committerMarge Bot <emma+marge@anholt.net>
Thu, 21 Sep 2023 13:30:28 +0000 (13:30 +0000)
commit2b1148ca4d0d6ccccbc7ea6373cb063177494bb6
tree948493c3f5fb49e754b1914869c4aa0d740db006
parent24ff1062b1df808c2ce44fb7080cb0237476c741
radeonsi/vcn: Implement destroy_fence vfunc

Now that fences are correctly cleaned up in frontend, we can store
the fence reference in picture->fence again.

The encoder also needs to implement this vfunc because if a surface
from decoder is used directly as encode input it's now up to encoder
to destroy the fence.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/9834

Reviewed-by: Leo Liu <leo.liu@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25296>
src/gallium/drivers/radeonsi/radeon_vcn_dec.c
src/gallium/drivers/radeonsi/radeon_vcn_enc.c