MLK-16120 gpu: imx: dpu: fetchdecode: Use interpolate upsampling mode for NV16/61
authorLiu Ying <victor.liu@nxp.com>
Wed, 2 Aug 2017 06:19:10 +0000 (14:19 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:36:15 +0000 (15:36 -0500)
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 <victor.liu@nxp.com>
drivers/gpu/imx/dpu/dpu-fetchdecode.c

index 166fa68..c28e110 100644 (file)
@@ -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;