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

Commit fb48ba73 authored by Maheshwar Ajja's avatar Maheshwar Ajja
Browse files

msm: vidc: Correct resolution check



Compare the number of macroblock per frame instead of
the number of pixels per frame to avoid batching enabled
for video playback resolutions greater than 1080p.

Change-Id: I07bbfae5513e9dc4b57058edea587d315d3f0c21
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent d2560a26
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2761,7 +2761,7 @@ bool is_batching_allowed(struct msm_vidc_inst *inst)
	 */
	if (is_decode_session(inst) && inst->core->resources.decode_batching &&
		(msm_vidc_get_mbs_per_frame(inst) <=
		MAX_DEC_BATCH_WIDTH * MAX_DEC_BATCH_HEIGHT) &&
		NUM_MBS_PER_FRAME(MAX_DEC_BATCH_HEIGHT, MAX_DEC_BATCH_WIDTH)) &&
		!inst->clk_data.low_latency_mode &&
		!is_thumbnail_session(inst) &&
		(inst->fmts[CAPTURE_PORT].fourcc == V4L2_PIX_FMT_NV12_UBWC ||