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

Commit e91c8504 authored by Deva Ramasubramanian's avatar Deva Ramasubramanian Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Use the future w/h for calculating DCVS load if in reconfig



If we're in the middle of a reconfig and *_dcvs_supported() is called, it
return false.  As a result, we end up under-allocating buffers during
the reconfig event which causes DCVS to scale poorly post-reconfig.

So, when we query to see if the session is supported by DCVS, consider
the new W/H if we're in middle of a reconfig.

Change-Id: I6dd1c94f4a5c7b240027c0efb56694b3f555592e
Signed-off-by: default avatarDeva Ramasubramanian <dramasub@codeaurora.org>
parent c808da70
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
/* Copyright (c) 2014 - 2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014 - 2016, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -28,8 +28,14 @@ static inline int msm_dcvs_get_mbs_per_frame(struct msm_vidc_inst *inst)
{
	int height, width;

	if (!inst->in_reconfig) {
		height = inst->prop.height[CAPTURE_PORT];
		width = inst->prop.width[CAPTURE_PORT];
	} else {
		height = inst->reconfig_height;
		width = inst->reconfig_width;
	}

	return NUM_MBS_PER_FRAME(height, width);
}