From 26782be24885a6384b8e0b930b6b160933fcbb3f Mon Sep 17 00:00:00 2001 From: Priyanka Gujjula Date: Mon, 22 Mar 2021 20:05:20 +0530 Subject: [PATCH] msm: vidc: Allocate required bin size for >=UHD enc Allocate equal bin size across all the pipes for encoder >=UHD Change-Id: Id6a4c2bda50da2bbd81e968be22b76bada51449a --- msm/vidc/msm_vidc_buffer_calculations.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_vidc_buffer_calculations.c b/msm/vidc/msm_vidc_buffer_calculations.c index 2db5696313c7f..997c1ee627492 100644 --- a/msm/vidc/msm_vidc_buffer_calculations.c +++ b/msm/vidc/msm_vidc_buffer_calculations.c @@ -1439,7 +1439,7 @@ static inline u32 calculate_enc_scratch_size(struct msm_vidc_inst *inst, bitbin_size = ALIGN(bitstream_size, VENUS_DMA_ALIGNMENT); } if (aligned_width * aligned_height >= 3840 * 2160) - size_singlePipe = bitbin_size / 4; + size_singlePipe = bitbin_size / num_vpp_pipes; else if (num_vpp_pipes > 2) size_singlePipe = bitbin_size / 2; else