Commit 956228da authored by Suresh Guttula's avatar Suresh Guttula Committed by Marge Bot
Browse files

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: Suresh Guttula's avatarSureshGuttula <suresh.guttula@amd.com>
Reviewed-by: Leo Liu's avatarLeo Liu <leo.liu@amd.com>
Part-of: <!7480>
parent 68092df8
Pipeline #226046 waiting for manual action with stages
in 23 seconds
......@@ -1401,7 +1401,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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment