diff options
author | Lajos Molnar <lajos@ti.com> | 2011-12-08 14:56:48 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-12-08 14:56:48 -0800 |
commit | 085c0e5468f3ba46f42749f84828cfd3ec6a7b78 (patch) | |
tree | d925e87658d042523f371b47bc5abef8c274ace1 /hwc | |
parent | 4b9a8e20618eab9b5a581a97586c5808f8571d28 (diff) | |
parent | a752a6adca3e4aebbd2876cc5f4d8e17ebf719dc (diff) | |
download | hardware_ti_omap4xxx-085c0e5468f3ba46f42749f84828cfd3ec6a7b78.tar.gz hardware_ti_omap4xxx-085c0e5468f3ba46f42749f84828cfd3ec6a7b78.tar.bz2 hardware_ti_omap4xxx-085c0e5468f3ba46f42749f84828cfd3ec6a7b78.zip |
am a752a6ad: hwc: Fix calculation of on_tv
* commit 'a752a6adca3e4aebbd2876cc5f4d8e17ebf719dc':
hwc: Fix calculation of on_tv
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) && |