diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2011-10-19 15:47:10 -0500 |
---|---|---|
committer | Erik Gilling <konkers@android.com> | 2011-10-23 22:20:22 -0700 |
commit | 6a3b9aa7679bb28f4cabb5c2d8c501ceea394c6a (patch) | |
tree | aa72a5303e267ff3cedd4eb72542450f9babe43d /hwc | |
parent | bd2e85e73627e80689721b154dd63bf14211d9a9 (diff) | |
download | hardware_ti_omap4xxx-6a3b9aa7679bb28f4cabb5c2d8c501ceea394c6a.zip hardware_ti_omap4xxx-6a3b9aa7679bb28f4cabb5c2d8c501ceea394c6a.tar.gz hardware_ti_omap4xxx-6a3b9aa7679bb28f4cabb5c2d8c501ceea394c6a.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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) { |