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: Veera Sundaram Sankaran <veeras@codeaurora.org>
This commit is contained in:
Veera Sundaram Sankaran 2016-02-24 16:00:41 -08:00 committed by David Keitel
parent 29a9db20f4
commit 94c6261fe7

View file

@ -1,4 +1,4 @@
/* 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,