Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 26782be2 authored by Priyanka Gujjula's avatar Priyanka Gujjula
Browse files

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

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

Change-Id: Id6a4c2bda50da2bbd81e968be22b76bada51449a
parent 6b5756c3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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