Skip to content
Commit 36e1b57b authored by Boyuan Zhang's avatar Boyuan Zhang Committed by Emil Velikov
Browse files

radeon/uvd: add and manage render picture list



Create a list in decoder to store all render picture buffer pointers that
currently being used in reference picture lists.

During get message buffer call, check each pointer in render_pic_list[]
within given pic->ref[] list, remove pointer that no longer being used by
pic->ref[]. Then add current render surface pointer to the render_pic_list[]
and assign the associated index to result.curr_idx.

As a result, result.curr_idx will have the correct index to represent the
current render picture, instead of the previous increamenting values.

Signed-off-by: default avatarBoyuan Zhang <boyuan.zhang@amd.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
(cherry picked from commit 2ec48039)
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104745


Signed-off-by: default avatarEmil Velikov <emil.velikov@collabora.com>

Conflicts:
	src/gallium/drivers/radeon/radeon_uvd.c
parent 2b6d2f6a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment