summaryrefslogtreecommitdiff
path: root/hwc
diff options
context:
space:
mode:
authorSunita Nadampalli <sunitan@ti.com>2011-10-19 15:47:10 -0500
committerErik Gilling <konkers@android.com>2011-10-23 22:20:22 -0700
commit6a3b9aa7679bb28f4cabb5c2d8c501ceea394c6a (patch)
treeaa72a5303e267ff3cedd4eb72542450f9babe43d /hwc
parentbd2e85e73627e80689721b154dd63bf14211d9a9 (diff)
downloadomap4-aah-6a3b9aa7679bb28f4cabb5c2d8c501ceea394c6a.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) {