radeonsi/video: Cleanup dpb buffer
Some checks are pending
macOS-CI / macOS-CI (dri) (push) Waiting to run
macOS-CI / macOS-CI (xlib) (push) Waiting to run

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15492
Fixes: 26979becec ("radeonsi/video: Add video decoder using ac_video_dec")
Reviewed-by: David Rosca <david.rosca@amd.com>
Signed-off-by: Benjamin Cheng <benjamin.cheng@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41627>
This commit is contained in:
Benjamin Cheng 2026-05-17 15:31:29 -04:00 committed by Marge Bot
parent f60749ff3c
commit 01a36c1540

View file

@ -1387,6 +1387,7 @@ static void si_dec_destroy(struct pipe_video_codec *decoder)
}
si_resource_reference(&vid->session_buffer, NULL);
si_resource_reference(&vid->session_tmz_buffer, NULL);
si_resource_reference(&vid->dpb_buffer, NULL);
for (unsigned i = 0; i < ARRAY_SIZE(vid->dpb); i++)
pipe_resource_reference(&vid->dpb[i], NULL);