diff options
author | Lajos Molnar <lajos@ti.com> | 2011-11-04 18:40:23 -0500 |
---|---|---|
committer | Erik Gilling <konkers@android.com> | 2011-12-08 14:19:06 -0800 |
commit | a752a6adca3e4aebbd2876cc5f4d8e17ebf719dc (patch) | |
tree | d925e87658d042523f371b47bc5abef8c274ace1 /hwc | |
parent | 4b267e18b9e98b788d2b1bf2f1268ed25e5b726d (diff) | |
download | hardware_ti_omap4xxx-a752a6adca3e4aebbd2876cc5f4d8e17ebf719dc.zip hardware_ti_omap4xxx-a752a6adca3e4aebbd2876cc5f4d8e17ebf719dc.tar.gz hardware_ti_omap4xxx-a752a6adca3e4aebbd2876cc5f4d8e17ebf719dc.tar.bz2 |
hwc: Fix calculation of on_tv
We are only on TV if we are actually cloning to external display.
Change-Id: I4a6cb7a58f5a00b71cf18c0cd3927bbec0fe74a1
Diffstat (limited to 'hwc')
-rw-r--r-- | hwc/hwc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -874,7 +874,7 @@ static inline int can_dss_render_all(omap4_hwc_device_t *hwc_dev, struct counts num->max_scaling_overlays = num->max_hw_overlays - nonscaling_ovls; - int on_tv = hwc_dev->ext.on_tv; + int on_tv = hwc_dev->ext.on_tv && hwc_dev->ext.current.enabled; int tform = hwc_dev->ext.current.enabled && (hwc_dev->ext.current.rotation || hwc_dev->ext.current.hflip); return !hwc_dev->force_sgx && @@ -897,7 +897,7 @@ static inline int can_dss_render_layer(omap4_hwc_device_t *hwc_dev, { IMG_native_handle_t *handle = (IMG_native_handle_t *)layer->handle; - int on_tv = hwc_dev->ext.on_tv; + int on_tv = hwc_dev->ext.on_tv && hwc_dev->ext.current.enabled; int tform = hwc_dev->ext.current.enabled && (hwc_dev->ext.current.rotation || hwc_dev->ext.current.hflip); return omap4_hwc_is_valid_layer(hwc_dev, layer, handle) && |