summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngi Kim <ingi2.kim@samsung.com>2015-04-28 19:59:34 +0900
committerSeung-Woo Kim <sw0312.kim@samsung.com>2015-06-01 21:00:23 -0700
commit7950285c001e049251ec76e6918be98bb6542c73 (patch)
treef912e2bd5e9625d022af186222bf625b567d674f
parentf9d90e89a8264ddf6670cd4f3c2626fcc2d2596a (diff)
downloadlinux-exynos-7950285c001e049251ec76e6918be98bb6542c73.tar.gz
linux-exynos-7950285c001e049251ec76e6918be98bb6542c73.tar.bz2
linux-exynos-7950285c001e049251ec76e6918be98bb6542c73.zip
drm/exynos: add ARGB8888 support for ipp gsc
Basically, gsc do not support ARGB color format. However, when mfc decodes through OMX(openmax) which is standard API for Media Library Portability, output format was shown as ARGB format. For support it, this patch adds ARGB8888 format support for ipp gsc driver. Change-Id: Ie5134592eca96acd133e2c098b6fd3c92c5e2605 Signed-off-by: Ingi Kim <ingi2.kim@samsung.com>
-rw-r--r--drivers/gpu/drm/exynos/exynos_drm_gsc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
index 2ab3fbbd7134..e08bc5741ff1 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c
@@ -541,6 +541,7 @@ static int gsc_set_planar_addr(struct drm_exynos_ipp_buf_info *buf_info,
bypass = true;
}
break;
+ case DRM_FORMAT_ARGB8888:
case DRM_FORMAT_XRGB8888:
ofs[0] = sz->hsize * sz->vsize << 2;
if (*base[0]) {
@@ -597,6 +598,7 @@ static int gsc_src_set_fmt(struct device *dev, u32 fmt)
case DRM_FORMAT_RGB565:
cfg |= GSC_IN_RGB565;
break;
+ case DRM_FORMAT_ARGB8888:
case DRM_FORMAT_XRGB8888:
cfg |= GSC_IN_XRGB8888;
break;
@@ -873,6 +875,7 @@ static int gsc_dst_set_fmt(struct device *dev, u32 fmt)
case DRM_FORMAT_RGB565:
cfg |= GSC_OUT_RGB565;
break;
+ case DRM_FORMAT_ARGB8888:
case DRM_FORMAT_XRGB8888:
cfg |= (GSC_OUT_XRGB8888 | GSC_OUT_GLOBAL_ALPHA(0xff));
break;