]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/commitdiff
OMAPDSS: DSSCOMP: Update bit-field info for BGRA32 color format
authorSreenidhi Koti Ananda Rao <sreenidhi@ti.com>
Tue, 2 Apr 2013 15:02:40 +0000 (10:02 -0500)
committerPraneeth Bajjuri <praneeth@ti.com>
Fri, 12 Jul 2013 22:41:45 +0000 (17:41 -0500)
Descrition: The bit-field info is used by the truncation logic, if
enabled, for the specific color format chosen.This patch appends the
BGRA color format & updates the corresponding bit-fields.

Change-Id: Ie78e1869d589012b604ed86a85bf1b132cbf6feb
Signed-off-by: Arthur Philpott <arthur.philpott@ti.com>
drivers/video/omap2/dsscomp/base.c

index 791b01959a89b5b8b01899b125ca2588e29a9477..affbbaaa5ef80b2a18b2c6b2bfd7e3023a056734 100755 (executable)
@@ -42,7 +42,7 @@ static const struct color_info {
        int x_bt;
        enum omap_color_mode mode;
        const char *name;
-} fmts[2][16] = { {
+} fmts[2][17] = { {
        { 0,  0, 0,  0, 0,  0, 0, 0, 1, OMAP_DSS_COLOR_CLUT1, "BITMAP1" },
        { 0,  0, 0,  0, 0,  0, 0, 0, 2, OMAP_DSS_COLOR_CLUT2, "BITMAP2" },
        { 0,  0, 0,  0, 0,  0, 0, 0, 4, OMAP_DSS_COLOR_CLUT4, "BITMAP4" },
@@ -59,6 +59,7 @@ static const struct color_info {
        { 24, 8, 16, 8, 8,  8, 0, 8, 0, OMAP_DSS_COLOR_ARGB32, "ARGB32-8888" },
        { 0,  8, 24, 8, 16, 8, 8, 8, 0, OMAP_DSS_COLOR_RGBA32, "RGBA32-8888" },
        { 0,  0, 24, 8, 16, 8, 8, 8, 8, OMAP_DSS_COLOR_RGBX32, "RGBx24-8888" },
+       { 0,  8, 8,  8, 16, 8, 24, 8, 0, OMAP_DSS_COLOR_BGRA32, "BGRA32-8888" },
        { 0,  0, 10, 5, 5,  5, 0, 5, 1, OMAP_DSS_COLOR_XRGB16_1555,
                                                                "xRGB15-1555" },
 }, {
@@ -77,6 +78,7 @@ static const struct color_info {
        { 0,  0, 0,  0, 0,  0, 0, 0, 16, OMAP_DSS_COLOR_UYVY, "UYVY" },
        { 24, 8, 16, 8, 8,  8, 0, 8, 0, OMAP_DSS_COLOR_ARGB32, "ARGB32-8888" },
        { 0,  8, 24, 8, 16, 8, 8, 8, 0, OMAP_DSS_COLOR_RGBA32, "RGBA32-8888" },
+       { 0,  8, 8,  8, 16, 8, 24, 8, 0, OMAP_DSS_COLOR_BGRA32, "BGRA32-8888" },
        { 0,  0, 24, 8, 16, 8, 8, 8, 8, OMAP_DSS_COLOR_RGBX32, "RGBx24-8888" },
        { 0,  0, 10, 5, 5,  5, 0, 5, 1, OMAP_DSS_COLOR_XRGB16_1555,
                                                                "xRGB15-1555" },