From 536c148e536785ae15f84ea7be04276c47a378d6 Mon Sep 17 00:00:00 2001 From: Laurentiu Palcu Date: Fri, 31 Aug 2018 13:58:01 +0300 Subject: [PATCH] MLK-19419: drm: imx: dcss: Add linear modifier support for all formats Tiled formats are supported only for YUV420 semi-planar formats. However, the other formats should support at least the LINEAR modifier. Some userspace app may pass on framebuffers with the linear modifier attached and, currently, this is rejected for YUV422 and RGB formats. This patch fixes that. Signed-off-by: Laurentiu Palcu Reported-by: Jared Hu --- drivers/gpu/drm/imx/dcss/dcss-plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/imx/dcss/dcss-plane.c b/drivers/gpu/drm/imx/dcss/dcss-plane.c index 61e2866525b1..9edb1cf48684 100644 --- a/drivers/gpu/drm/imx/dcss/dcss-plane.c +++ b/drivers/gpu/drm/imx/dcss/dcss-plane.c @@ -158,7 +158,7 @@ static bool dcss_plane_format_mod_supported(struct drm_plane *plane, modifier == DRM_FORMAT_MOD_VSI_G2_TILED || modifier == DRM_FORMAT_MOD_VSI_G2_TILED_COMPRESSED; default: - return false; + return modifier == DRM_FORMAT_MOD_LINEAR; } break; default: -- 2.17.1