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

Commit 1f3a9c02 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: vidc: Fix errors in governor's formula for AB calculation"

parents 7e2d4302 4df42ea1
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -676,9 +676,9 @@ static unsigned long __calculate_encoder(struct vidc_bus_vote_data *d,
				line_buffer_size_per_lcu),
			FP_INT(1024));
	line_buffer_bw = fp_mult(line_buffer_size,
			FP_INT((height / lcu_size /
					(two_stage_encoding ? 2 : 1) - 1) *
					fps / 1000));
			fp_div(FP_INT((height / lcu_size /
				(two_stage_encoding ? 2 : 1) - 1) * fps),
				FP_INT(1000)));

	collocated_mv_per_lcu = lcu_size == 16 ? 16 : 64;
	max_transaction_size = 256;
@@ -789,7 +789,7 @@ static unsigned long __calculate_encoder(struct vidc_bus_vote_data *d,
	vmem.dpb_read = FP_ZERO;
	if (gop == GOP_IPPP) {
		fp_t temp = fp_mult(one_frame_bw_dpb,
				search_window_factor_bw_p);
			FP_INT(search_window_factor_bw_p * available_vmem_p));
		temp = fp_div(temp, FP_INT(3));

		vmem.dpb_read = temp;