diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2018-03-19 11:06:57 +0100 |
---|---|---|
committer | Marek Szyprowski <m.szyprowski@samsung.com> | 2018-03-26 15:14:54 +0200 |
commit | ef8038807068a4e1783e8beff4662f888b6107e3 (patch) | |
tree | 6998c6003c732d6a74d44164ddf7a9a11e684bca | |
parent | abec9042937f6d8a04f2f259678e76280ae3d084 (diff) | |
download | linux-exynos-ef8038807068a4e1783e8beff4662f888b6107e3.tar.gz linux-exynos-ef8038807068a4e1783e8beff4662f888b6107e3.tar.bz2 linux-exynos-ef8038807068a4e1783e8beff4662f888b6107e3.zip |
drm/exynos: gsc: Add limited support for ARGB8888 format
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: I4f0314693a953caf5d58646281ad72ff354edea2
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gsc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 60a23b7dac4f..e99dd1e4ba65 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -465,6 +465,7 @@ static void gsc_src_set_fmt(struct gsc_context *ctx, u32 fmt) cfg |= GSC_IN_RGB565; break; case DRM_FORMAT_XRGB8888: + case DRM_FORMAT_ARGB8888: cfg |= GSC_IN_XRGB8888; break; case DRM_FORMAT_BGRX8888: @@ -643,8 +644,9 @@ static void gsc_dst_set_fmt(struct gsc_context *ctx, u32 fmt) case DRM_FORMAT_RGB565: cfg |= GSC_OUT_RGB565; break; + case DRM_FORMAT_ARGB8888: case DRM_FORMAT_XRGB8888: - cfg |= GSC_OUT_XRGB8888; + cfg |= (GSC_OUT_XRGB8888 | GSC_OUT_GLOBAL_ALPHA(0xff)); break; case DRM_FORMAT_BGRX8888: cfg |= (GSC_OUT_XRGB8888 | GSC_OUT_RB_SWAP); @@ -1180,6 +1182,7 @@ static const struct component_ops gsc_component_ops = { }; static const unsigned int gsc_formats[] = { + DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888, DRM_FORMAT_RGB565, DRM_FORMAT_BGRX8888, DRM_FORMAT_NV12, DRM_FORMAT_NV16, DRM_FORMAT_NV21, DRM_FORMAT_NV61, DRM_FORMAT_UYVY, DRM_FORMAT_VYUY, DRM_FORMAT_YUYV, DRM_FORMAT_YVYU, |