diff options
author | Sunita Nadampalli <sunitan@ti.com> | 2012-02-20 14:43:50 -0600 |
---|---|---|
committer | Daniel Levin <dendy@ti.com> | 2012-11-28 21:16:22 +0200 |
commit | 809d5adf395192e145fead99c630cdd2bf71ce2b (patch) | |
tree | d87608dcf9cde8992172094453e396f76cd174a0 | |
parent | 92846a633185b7621c1acde6d0a570615043ff13 (diff) | |
download | hardware_ti_omap4-809d5adf395192e145fead99c630cdd2bf71ce2b.zip hardware_ti_omap4-809d5adf395192e145fead99c630cdd2bf71ce2b.tar.gz hardware_ti_omap4-809d5adf395192e145fead99c630cdd2bf71ce2b.tar.bz2 |
hwc: fix overlay assignment during HDMI docking mode
During HDMI docking mode, only the layers which are cloned to TV
need to be checked against TV capabilities
Rebased from p-ics-mr1:
1ac57a8 HWC: Fix for overlay assignment during HDMI docking mode
Change-Id: I7a86ea162d484a7649273a3a7e2513db3dcd8015
Signed-off-by: Sunita Nadampalli <sunitan@ti.com>
Signed-off-by: Lajos Molnar <lajos@ti.com>
-rw-r--r-- | hwc/hwc.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1126,8 +1126,9 @@ static inline int can_dss_render_layer(omap4_hwc_device_t *hwc_dev, IMG_native_handle_t *handle = (IMG_native_handle_t *)layer->handle; omap4_hwc_ext_t *ext = &hwc_dev->ext; - int on_tv = ext->on_tv && ext->current.enabled; - int tform = ext->current.enabled && (ext->current.rotation || ext->current.hflip); + int cloning = ext->current.enabled && (!ext->current.docking || (handle!=NULL ? dockable(layer) : 0)); + int on_tv = ext->on_tv && cloning; + int tform = cloning && (ext->current.rotation || ext->current.hflip); return omap4_hwc_is_valid_layer(hwc_dev, layer, handle) && /* cannot rotate non-NV12 layers on external display */ |