summaryrefslogtreecommitdiff
path: root/hwc
diff options
context:
space:
mode:
authorSunita Nadampalli <sunitan@ti.com>2011-10-19 15:47:10 -0500
committerEd Heyl <ed@google.com>2011-10-25 20:40:21 +0000
commit276f589a430f7084dd2a903a1aa6eaabe1e5bf50 (patch)
treeaa72a5303e267ff3cedd4eb72542450f9babe43d /hwc
parent9d55e96dabeb2c13c02cb96acec7f07c915c4833 (diff)
downloadomap4-aah-276f589a430f7084dd2a903a1aa6eaabe1e5bf50.tar.gz
HWC: Fix for dock mode setup
The dock plane index is set correctly, in the scenario where there is no HW accelerated overlays. Earlier in this scenario, where all the layers were composed by SGX (no layer for HW acceleration), and the external display was setup for DOCK mode, the dock_layer index was left undefined (-1) and hence the behavior was unpredictable. Change-Id: I69ff7795080f3257db70b5a6a143afca53924524 Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Diffstat (limited to 'hwc')
-rw-r--r--hwc/hwc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index f13f53b..5eaa8ba 100644
--- a/hwc/hwc.c
+++ b/hwc/hwc.c
@@ -1088,6 +1088,9 @@ static int omap4_hwc_prepare(struct hwc_composer_device *dev, hwc_layer_list_t*
/* mirror layers */
hwc_dev->post2_layers = dsscomp->num_ovls;
+ if (hwc_dev->ext.current.docking && (ix_docking == -1))
+ ix_docking = dsscomp->ovls[0].cfg.ix;
+
if (hwc_dev->ext.current.enabled && hwc_dev->ext_ovls) {
int ix_back, ix_front, ix;
if (hwc_dev->ext.current.docking) {