]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
OMAPDSS: OMAPLFB: Dont foward compositions to DSSCOMP if overlay is Zero
authorDandawate Saket <dsaket@ti.com>
Tue, 21 Aug 2012 23:00:23 +0000 (16:00 -0700)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:45:11 +0000 (17:45 -0500)
Do not foward compositions to DSSCOMP in case overlay number
passed by HWC is zero. The dsscomp->num_overlay = 0 means
that there is no primary display and no rendering is required.

Change-Id: If7b582efeb55ce84878d0bfbd19eabd2ebd3afaa
Signed-off-by: Tony Lofthouse <a0741364@ti.com>
Signed-off-by: Dandawate Saket <dsaket@ti.com>
drivers/video/omap2/omaplfb/omaplfb_displayclass.c

index cf463d3894b628d55187febb00947f75cfdfee0a..b874233a8cce407ad67c46e0ef0afa3a9c736e8d 100644 (file)
@@ -982,7 +982,7 @@ static IMG_BOOL ProcessFlipV2(IMG_HANDLE hCmdCookie,
                     uiHwcDataSz, calcsz);
        }
 
-       if(psDssData->num_ovls == 0 || ui32NumMemInfos == 0)
+       if (ui32NumMemInfos == 0)
        {
                WARN(1, "must have at least one layer");
                return IMG_FALSE;
@@ -1103,9 +1103,12 @@ static IMG_BOOL ProcessFlipV2(IMG_HANDLE hCmdCookie,
                OMAPLFBDoBlits(psDevInfo, ppsMemInfos, &psHwcData->blit_data, ui32NumMemInfos);
        }
 
-       dsscomp_gralloc_queue(psDssData, apsTilerPAs, false,
-                                                 dsscomp_proxy_cmdcomplete,
-                                                 (void *)hCmdCookie);
+       if (psDssData->num_ovls == 0)
+               dsscomp_proxy_cmdcomplete((void *)hCmdCookie, IMG_TRUE);
+       else
+               dsscomp_gralloc_queue(psDssData, apsTilerPAs, false,
+                                               dsscomp_proxy_cmdcomplete,
+                                               (void *)hCmdCookie);
 
        for(i = 0; i < ARRAY_SIZE(asMemInfo); i++)
        {