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:
parent
6b5756c37a
commit
26782be248
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user