mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 16:40:13 +01:00
radeon/vcn/vp9: search the render target from the whole list
The number of render targets could be more than max of references, so we search the full list of the render pictures for the current render target index https://bugs.freedesktop.org/show_bug.cgi?id=109648 Signed-off-by: Leo Liu <leo.liu@amd.com> Tested-by: James Zhu <James.Zhu@amd.com> Acked-by: James Zhu<James.Zhu@amd.com> Cc: <mesa-stable@lists.freedesktop.org>
This commit is contained in:
parent
0af95f0ffc
commit
d4e0fbc92f
1 changed files with 1 additions and 1 deletions
|
|
@ -491,7 +491,7 @@ static rvcn_dec_message_vp9_t get_vp9_msg(struct radeon_decoder *dec,
|
|||
|
||||
assert(dec->base.max_references + 1 <= 16);
|
||||
|
||||
for (i = 0 ; i < dec->base.max_references + 1 ; ++i) {
|
||||
for (i = 0 ; i < 16 ; ++i) {
|
||||
if (dec->render_pic_list[i] && dec->render_pic_list[i] == target) {
|
||||
result.curr_pic_idx =
|
||||
(uintptr_t)vl_video_buffer_get_associated_data(target, &dec->base);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue