summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGowtham Tammana <g-tammana@ti.com>2018-04-12 12:53:37 -0500
committerGowtham Tammana <g-tammana@ti.com>2018-04-12 12:53:37 -0500
commit88eb6ec43c21fc8a330a0551d14a8728348782a6 (patch)
tree69abfea295ec5f16d45acd0a13d75fb985130d5d
parent98b81130a74555ad97d8bc97b1142ca0f31efd8d (diff)
downloaddra7xx-88eb6ec43c21fc8a330a0551d14a8728348782a6.tar.gz
hwc: Fix DSS comp on no overlays
Disable DSS composition if there are no overlays available. Change-Id: I2470119d4ed2758f1fc954f27bd1da171910e239 Signed-off-by: Gowtham Tammana <g-tammana@ti.com>
-rw-r--r--hwcomposer/hwc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/hwcomposer/hwc.c b/hwcomposer/hwc.c
index 348e2f4..f03d43b 100644
--- a/hwcomposer/hwc.c
+++ b/hwcomposer/hwc.c
@@ -169,6 +169,9 @@ static void hwc_check_dss_composition(omap_hwc_device_t *hwc_dev, int disp)
if (disp || list->numHwLayers == 1 || comp->use_blitter)
return;
+ if (!comp->avail_ovls)
+ return;
+
if (!property_get_bool("persist.hwc.dss.comp", 1))
return;