From a752a6adca3e4aebbd2876cc5f4d8e17ebf719dc Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Fri, 4 Nov 2011 18:40:23 -0500 Subject: hwc: Fix calculation of on_tv We are only on TV if we are actually cloning to external display. Change-Id: I4a6cb7a58f5a00b71cf18c0cd3927bbec0fe74a1 --- hwc/hwc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hwc') diff --git a/hwc/hwc.c b/hwc/hwc.c index 0e62603..b90ac03 100644 --- a/hwc/hwc.c +++ b/hwc/hwc.c @@ -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) && -- cgit v1.1