mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
msm: vidc: Fix incorrect VP9 scratch buffer calculation
Fix the incorrect VP9 decoder scratch buffer calculation and match it with firmware definition of scratch buffer size. Change-Id: Ie901082760d675153d1eb898cbe665cc6ad59bd1 Signed-off-by: Mihir Ganu <mganu@codeaurora.org>
This commit is contained in:
parent
10fbc8019e
commit
4be4e326bf
1 changed files with 4 additions and 2 deletions
|
|
@ -1349,13 +1349,15 @@ static inline u32 calculate_vpxd_scratch_size(struct msm_vidc_inst *inst,
|
|||
((BIN_BUFFER_THRESHOLD * 3) >> 1)) *
|
||||
VPX_DECODER_FRAME_CONCURENCY_LVL *
|
||||
VPX_DECODER_FRAME_BIN_HDR_BUDGET_RATIO_NUM /
|
||||
VPX_DECODER_FRAME_BIN_HDR_BUDGET_RATIO_DEN,
|
||||
VPX_DECODER_FRAME_BIN_HDR_BUDGET_RATIO_DEN /
|
||||
num_vpp_pipes,
|
||||
VENUS_DMA_ALIGNMENT);
|
||||
binbuffer2_size = ALIGN(max_t(u32, size_yuv,
|
||||
((BIN_BUFFER_THRESHOLD * 3) >> 1)) *
|
||||
VPX_DECODER_FRAME_CONCURENCY_LVL *
|
||||
VPX_DECODER_FRAME_BIN_RES_BUDGET_RATIO_NUM /
|
||||
VPX_DECODER_FRAME_BIN_RES_BUDGET_RATIO_DEN,
|
||||
VPX_DECODER_FRAME_BIN_RES_BUDGET_RATIO_DEN /
|
||||
num_vpp_pipes,
|
||||
VENUS_DMA_ALIGNMENT);
|
||||
size = binbuffer1_size + binbuffer2_size;
|
||||
size = size * num_vpp_pipes;
|
||||
|
|
|
|||
Loading…
Reference in a new issue