From c85f6a008e6c5ee1efefc4c5f5beb013950b982e Mon Sep 17 00:00:00 2001 From: Shilin Victor Date: Wed, 14 Nov 2018 10:57:42 +0300 Subject: [PATCH] hwc: RGB_565 pixel format is not supported thanks @acroreiser Change-Id: I114fae3f6ebce32bbf0c07296a54b4fb4a599c08 --- exynos4/hal/libhwc/hwcomposer.cpp | 2 +- exynos4/hal/libhwc/utils.cpp | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/exynos4/hal/libhwc/hwcomposer.cpp b/exynos4/hal/libhwc/hwcomposer.cpp index a1f6e46..8efb5de 100644 --- a/exynos4/hal/libhwc/hwcomposer.cpp +++ b/exynos4/hal/libhwc/hwcomposer.cpp @@ -92,7 +92,6 @@ static int dup_or_warn(int fence) static bool format_is_supported_by_fimg(int format) { switch (format) { - case HAL_PIXEL_FORMAT_RGB_565: case HAL_PIXEL_FORMAT_RGBA_4444: case HAL_PIXEL_FORMAT_RGBX_8888: case HAL_PIXEL_FORMAT_BGRA_8888: @@ -103,6 +102,7 @@ static bool format_is_supported_by_fimg(int format) case HAL_PIXEL_FORMAT_CUSTOM_YCrCb_420_SP: return true; + case HAL_PIXEL_FORMAT_RGB_565: default: ALOGV("%s format=%d false", __FUNCTION__, format); return false; diff --git a/exynos4/hal/libhwc/utils.cpp b/exynos4/hal/libhwc/utils.cpp index 62c5230..60ef605 100644 --- a/exynos4/hal/libhwc/utils.cpp +++ b/exynos4/hal/libhwc/utils.cpp @@ -97,8 +97,6 @@ enum s3c_fb_pixel_format format_to_s3c_format(int format) return S3C_FB_PIXEL_FORMAT_RGBX_8888; case HAL_PIXEL_FORMAT_RGB_888: return S3C_FB_PIXEL_FORMAT_RGB_888; - case HAL_PIXEL_FORMAT_RGB_565: - return S3C_FB_PIXEL_FORMAT_RGB_565; case HAL_PIXEL_FORMAT_BGRA_8888: return S3C_FB_PIXEL_FORMAT_BGRA_8888; default: