summaryrefslogtreecommitdiffstats
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
commitddd8abe201b190eb86763c99ad7c9ab23c34dd6f (patch)
tree7403d55297af42592cabcceacdde0077395a9f1e /hwc
parentffc46ff09ff178c0dd3765ab759882bafd294175 (diff)
downloadhardware_ti_omap4-ddd8abe201b190eb86763c99ad7c9ab23c34dd6f.zip
hardware_ti_omap4-ddd8abe201b190eb86763c99ad7c9ab23c34dd6f.tar.gz
hardware_ti_omap4-ddd8abe201b190eb86763c99ad7c9ab23c34dd6f.tar.bz2
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) {