msm: vidc: Allocate required bin size for >=UHD enc

Allocate equal bin size across all the pipes for
encoder >=UHD

Change-Id: Id6a4c2bda50da2bbd81e968be22b76bada51449a
This commit is contained in:
Priyanka Gujjula 2021-03-22 20:05:20 +05:30
parent 6b5756c37a
commit 26782be248

View File

@ -1439,7 +1439,7 @@ static inline u32 calculate_enc_scratch_size(struct msm_vidc_inst *inst,
bitbin_size = ALIGN(bitstream_size, VENUS_DMA_ALIGNMENT); bitbin_size = ALIGN(bitstream_size, VENUS_DMA_ALIGNMENT);
} }
if (aligned_width * aligned_height >= 3840 * 2160) 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) else if (num_vpp_pipes > 2)
size_singlePipe = bitbin_size / 2; size_singlePipe = bitbin_size / 2;
else else