summaryrefslogtreecommitdiffstats
path: root/hwc
diff options
context:
space:
mode:
authorLajos Molnar <lajos@ti.com>2011-12-12 12:34:49 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-12-12 12:34:49 -0800
commit1612a86ae99c996db464778f405e00e448627440 (patch)
tree1da1f64b0f7da36d9eb7ad6ae9e73f83c95d833d /hwc
parent3ef73757e76e5109d78ad67b244a4f0706cc62f6 (diff)
parent085c0e5468f3ba46f42749f84828cfd3ec6a7b78 (diff)
downloadhardware_ti_omap4xxx-1612a86ae99c996db464778f405e00e448627440.tar.gz
hardware_ti_omap4xxx-1612a86ae99c996db464778f405e00e448627440.tar.bz2
hardware_ti_omap4xxx-1612a86ae99c996db464778f405e00e448627440.zip
am 085c0e54: am a752a6ad: hwc: Fix calculation of on_tv
* commit '085c0e5468f3ba46f42749f84828cfd3ec6a7b78': hwc: Fix calculation of on_tv
Diffstat (limited to 'hwc')
-rw-r--r--hwc/hwc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hwc/hwc.c b/hwc/hwc.c
index 680e0e2..b0e96a4 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) &&