From 6df274e979a0ab55fdde16b0718da5f5bd9ff58a Mon Sep 17 00:00:00 2001 From: Gowtham Tammana Date: Wed, 1 Nov 2017 21:48:59 -0500 Subject: hwc: Skip dss composition for single NV12 layer In single NV12 layer case, it is being assigned to GFX pipe which cannot do color-conversion. Skipping DSS composition in this scenario. Change-Id: I2548f2c27cf1ae0ece6350729f606ecea6fa038b Signed-off-by: Gowtham Tammana --- hwcomposer/hwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hwcomposer/hwc.c b/hwcomposer/hwc.c index 18df5e8..343778f 100644 --- a/hwcomposer/hwc.c +++ b/hwcomposer/hwc.c @@ -162,7 +162,7 @@ static void hwc_check_dss_composition(omap_hwc_device_t *hwc_dev, int disp) hwc_layer_1_t *layer = NULL; uint32_t i, j; - if (disp || list->numHwLayers == 1 || comp->use_blitter) + if (disp || list->numHwLayers <= 2 || comp->use_blitter) return; if (!property_get_bool("persist.hwc.dss.comp", 1)) -- cgit v1.2.3