Mesa (18.3): radeon/vcn/vp9: search the render target from the whole list
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Apr 5 10:53:29 UTC 2019
Module: Mesa
Branch: 18.3
Commit: 319e0c1799d4f490f9da23d349c5a8de7dc5eefa
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=319e0c1799d4f490f9da23d349c5a8de7dc5eefa
Author: Leo Liu <leo.liu at amd.com>
Date: Wed Mar 27 08:37:28 2019 -0400
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 at amd.com>
Tested-by: James Zhu <James.Zhu at amd.com>
Acked-by: James Zhu<James.Zhu at amd.com>
Cc: <mesa-stable at lists.freedesktop.org>
(cherry picked from commit d4e0fbc92fd08be504f328144c874da47b78e5dc)
---
src/gallium/drivers/radeon/radeon_vcn_dec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index 24c4c649d1e..6068e9fce25 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_dec.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c
@@ -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);
More information about the mesa-commit
mailing list