]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
OMAPDSS: OMAPFB: (HACK) Double buffer for swap chain
authorHemant Hariyani <hemanthariyani@ti.com>
Wed, 17 Apr 2013 15:54:56 +0000 (10:54 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:35:08 +0000 (17:35 -0500)
This hack ensures OMAPFB providing sufficient size of swap chain.

Change-Id: Ic88186c2599569158a1e9bda6b579cd3ad033479
Signed-off-by: Hemant Hariyani <hemanthariyani@ti.com>
drivers/video/omap2/omapfb/omapfb-main.c

index a6b7e4ccc803d70a4f8c8311b13817ec8551cbe7..166c7a3e810cdf2f898e7bd62fdec56aaf765568 100755 (executable)
@@ -1634,6 +1634,12 @@ static int omapfb_alloc_fbmem_display(struct fb_info *fbi, unsigned long size,
                }
        }
 
+       /*FIXME: This is a hack for swap chain creation.
+       If you see this in production code, there is a
+       serious problem!!!
+       */
+       size *= 2;
+
        if (!size)
                return 0;