From 01a36c15405ae66e5903cf52f1f42b171d16e022 Mon Sep 17 00:00:00 2001 From: Benjamin Cheng Date: Sun, 17 May 2026 15:31:29 -0400 Subject: [PATCH] radeonsi/video: Cleanup dpb buffer Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15492 Fixes: 26979becec3 ("radeonsi/video: Add video decoder using ac_video_dec") Reviewed-by: David Rosca Signed-off-by: Benjamin Cheng Part-of: --- src/gallium/drivers/radeonsi/mm/si_video_dec.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/drivers/radeonsi/mm/si_video_dec.c b/src/gallium/drivers/radeonsi/mm/si_video_dec.c index 1971e0abd3a..4f4920dabff 100644 --- a/src/gallium/drivers/radeonsi/mm/si_video_dec.c +++ b/src/gallium/drivers/radeonsi/mm/si_video_dec.c @@ -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);