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

Commit a8e880eb authored by Veera Sundaram Sankaran's avatar Veera Sundaram Sankaran
Browse files

msm: mdss: fix simulator panel SW-TE parameters



In simulator panel SW-TE approach, we rely on the sync config
height, init, start_pos and read ptr TE parameters. Set start_pos,
init and read ptr with respect to panel yres, as it is done in
the default settings when it is used with an actual panel.
Setting these parameters with respect to 0 causes fps drops.

Change-Id: I9acf4d1558767e7789a5e37dc2444f947d11eb21
Signed-off-by: default avatarVeera Sundaram Sankaran <veeras@codeaurora.org>
parent 67928fab
Loading
Loading
Loading
Loading
+4 −4
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
@@ -524,9 +524,9 @@ void mdss_panel_debugfs_cleanup(struct mdss_panel_info *panel_info)
void mdss_panel_override_te_params(struct mdss_panel_info *pinfo)
{
	pinfo->te.sync_cfg_height = mdss_panel_get_vtotal(pinfo);
	pinfo->te.vsync_init_val = 0;
	pinfo->te.start_pos = 5;
	pinfo->te.rd_ptr_irq = 1;
	pinfo->te.vsync_init_val = pinfo->yres;
	pinfo->te.start_pos = pinfo->yres;
	pinfo->te.rd_ptr_irq = pinfo->yres + 1;
	pr_debug("SW TE override: read_ptr:%d,start_pos:%d,height:%d,init_val:%d\n",
		pinfo->te.rd_ptr_irq, pinfo->te.start_pos,
		pinfo->te.sync_cfg_height,