summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSureshGuttula <suresh.guttula@amd.com>2020-11-06 23:35:28 +0530
committerDylan Baker <dylan.c.baker@intel.com>2020-12-01 10:02:42 -0800
commitfc699c4aba51b82257e5a337edacf065944ff89c (patch)
tree2d9ac337ffef2bd45835864dd88456862b117803
parent7cb4663c575a02a7a908693253a660f451de77c8 (diff)
radeon/vcn : Corrected dpb_size calculation for VP9_2
Currently dpb_size for VP9 profile0 and profile2 is same eventhough for profile2 dpb_size is multiplied by extra 3/2 and we are seeing VM_L2_PROTECTION_FAULT error and ring vcn_dec timeout because of less dpb_size for VP9_2. This patch will correct dpb_size for VP9_2 and fixes the issue. Signed-off-by: SureshGuttula <suresh.guttula@amd.com> Reviewed-by: Leo Liu <leo.liu@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7480> (cherry picked from commit 956228da3a11a83d938c929415efb375ffc2ca1f)
-rw-r--r--src/gallium/drivers/radeon/radeon_vcn_dec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/radeon_vcn_dec.c b/src/gallium/drivers/radeon/radeon_vcn_dec.c
index e61deb20648..e32a2a598bc 100644
--- a/src/gallium/drivers/radeon/radeon_vcn_dec.c
+++ b/src/gallium/drivers/radeon/radeon_vcn_dec.c
@@ -1264,7 +1264,7 @@ static unsigned calc_dpb_size(struct radeon_decoder *dec)
: (4096 * 3000 * 3 / 2) * max_references;
if (dec->base.profile == PIPE_VIDEO_PROFILE_VP9_PROFILE2)
- dpb_size *= (3 / 2);
+ dpb_size = dpb_size * 3 / 2;
break;
case PIPE_VIDEO_FORMAT_JPEG: