summaryrefslogtreecommitdiff
path: root/libhwc
diff options
context:
space:
mode:
authorSanghee Kim <haya93@samsung.com>2012-09-14 23:58:28 -0700
committerGreg Hackmann <ghackmann@google.com>2012-09-20 15:51:55 -0700
commit05cbd792101e9f4b58ae6a0b78e444c100d6b770 (patch)
tree2888e1758530002f6f16013ea126e6921ca5322e /libhwc
parente689c0288fd0cf934c7e57952d6092bdc58a0aca (diff)
downloadexynos5-05cbd792101e9f4b58ae6a0b78e444c100d6b770.tar.gz
exynos5: libhwc: support the directFB for RGB565.
Gaia display controller supports RGB order each window. Even if differet order of several formats are mixed, can control RGB order each window. Change-Id: Id4117d56f548af40579580632e83c140257d2d5d Signed-off-by: Sanghee Kim <haya93@samsung.com>
Diffstat (limited to 'libhwc')
-rw-r--r--libhwc/hwc.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp
index c548b76..2692a2e 100644
--- a/libhwc/hwc.cpp
+++ b/libhwc/hwc.cpp
@@ -223,7 +223,8 @@ static enum s3c_fb_pixel_format exynos5_format_to_s3c_format(int format)
return S3C_FB_PIXEL_FORMAT_RGBX_8888;
case HAL_PIXEL_FORMAT_RGBA_5551:
return S3C_FB_PIXEL_FORMAT_RGBA_5551;
-
+ case HAL_PIXEL_FORMAT_RGB_565:
+ return S3C_FB_PIXEL_FORMAT_RGB_565;
default:
return S3C_FB_PIXEL_FORMAT_MAX;
}
@@ -273,8 +274,8 @@ static bool exynos5_format_is_ycrcb(int format)
static bool exynos5_format_requires_gscaler(int format)
{
- return exynos5_format_is_supported_by_gscaler(format) &&
- format != HAL_PIXEL_FORMAT_RGBX_8888;
+ return (exynos5_format_is_supported_by_gscaler(format) &&
+ (format != HAL_PIXEL_FORMAT_RGBX_8888) && (format != HAL_PIXEL_FORMAT_RGB_565));
}
static uint8_t exynos5_format_to_bpp(int format)
@@ -286,6 +287,7 @@ static uint8_t exynos5_format_to_bpp(int format)
case HAL_PIXEL_FORMAT_RGBA_5551:
case HAL_PIXEL_FORMAT_RGBA_4444:
+ case HAL_PIXEL_FORMAT_RGB_565:
return 16;
default: