mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-24 04:08:10 +02:00
radeonsi/video: Cleanup dpb buffer
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:
parent
f60749ff3c
commit
01a36c1540
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue