From 47f6a66dc24442ea9bbfc8ad8351a8581cd5aff0 Mon Sep 17 00:00:00 2001 From: Liu Ying Date: Wed, 2 Aug 2017 14:19:10 +0800 Subject: [PATCH] MLK-16120 gpu: imx: dpu: fetchdecode: Use interpolate upsampling mode for NV16/61 According to dpu spec, we should use interpolate upsampling mode for NV16/61. This patch changes the mode from replicate to interpolate for the two pixel formats. Signed-off-by: Liu Ying --- drivers/gpu/imx/dpu/dpu-fetchdecode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/imx/dpu/dpu-fetchdecode.c b/drivers/gpu/imx/dpu/dpu-fetchdecode.c index 166fa685184c..c28e110ec7a6 100644 --- a/drivers/gpu/imx/dpu/dpu-fetchdecode.c +++ b/drivers/gpu/imx/dpu/dpu-fetchdecode.c @@ -277,10 +277,12 @@ void fetchdecode_set_fmt(struct dpu_fetchdecode *fd, u32 fmt) is_yuv422upsamplingmode_interpolate = true; need_csc = true; break; - case DRM_FORMAT_NV12: - case DRM_FORMAT_NV21: case DRM_FORMAT_NV16: case DRM_FORMAT_NV61: + is_yuv422upsamplingmode_interpolate = true; + /* fall-through */ + case DRM_FORMAT_NV12: + case DRM_FORMAT_NV21: is_planar_yuv = true; is_rastermode_yuv422 = true; is_inputselect_compact = true; -- 2.17.1