From patchwork Thu Jun 7 11:06:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 137865 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1948438lji; Thu, 7 Jun 2018 04:06:27 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIAlQohGNnOGq9/lQ+bhlxPg7CkfkRDZx0LaCFTGi7BbjHigm2kD+RzplmPouH1P/WYbyxh X-Received: by 2002:a62:67c5:: with SMTP id t66-v6mr1403873pfj.20.1528369587718; Thu, 07 Jun 2018 04:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528369587; cv=none; d=google.com; s=arc-20160816; b=WyERfKgrTDHs9sTvV0cVIteAUqj+W8I78zebtufQDCB0Ia81sk9X5D5DJG2LckX0Ln D9AsrJfllBeUdQ/6t9NniIs/TWWhp/ICexKUBXR9EBvM+RM4KskU9M16GV3HsdbRIdsC KGK7vb2SLXbIx7lFphSqMQrUdwE8p7SZK9EVP5F0pNXAf1Xs7JQbVuskmz0LHEySJKeQ jsJV6cYg2Am95E4UFFYBBP3G9DMZDJkG40UwUl7kWWdv+y24dsGwkhFhQKkyyxRcWJRP 69MYzRs53ieZAyVmw4amAWFauTrBHah7MMK/qFasYMFvUlnoMvftK44uFD3N+v9xY58z pUwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=pztakAlwKkFx35U2cQvW5Cd5vT1IMPK8OpF20yLlceM=; b=eIKpPIe5t1hoCEjsLaO4472RzpEfmg8n7amkZN/4CEEHpwVUIjb03+iAy1OgtPwM6w 7S64CPlgdNJqHTz/PNHWyXlSxj3WXu3Y1YELpoZa2ONgQa8QJrawZofqcXe7hnoCeJ+6 Qz1AoP4ztNvJTh5GEqryweCkQcJY1lvXPJd++AYQReOgnuUj4V1cZ93fn4gVZ/7+RAqA 4SZ73aZdrmT2egi7WBiXvRjsPBSxwlRSHvdM1pEkQgoQn5TXTCY2/YN0faTIn2UvnarB JUGMmUpznmN04LO+W+kSz2imdQL5UhYDSeg9S3DvxVFQG6LKU5X8ALnJsZD5lAL9pvAr GS7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=Zf7yV87H; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p8-v6si15144102pgd.96.2018.06.07.04.06.27; Thu, 07 Jun 2018 04:06:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@samsung.com header.s=mail20170921 header.b=Zf7yV87H; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753149AbeFGLG0 (ORCPT + 3 others); Thu, 7 Jun 2018 07:06:26 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:33815 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753187AbeFGLGY (ORCPT ); Thu, 7 Jun 2018 07:06:24 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180607110622euoutp0258163a0d844657ff666171593e25b3d8~13Am9bVHA2986729867euoutp02B; Thu, 7 Jun 2018 11:06:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180607110622euoutp0258163a0d844657ff666171593e25b3d8~13Am9bVHA2986729867euoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1528369582; bh=su+u0s+LhfjC4aCVrfmAL23qFgMkkexjgBb59P0WpOU=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=Zf7yV87HjfH6NxAgNoQgAbAWUG/3p6RSrXtYk3x1ROqBf/TMiEtLLIz1PLmBP73Lp Q0aE5ToeVCNWQi99kA7VMpdsjy1r4tgUHJWrT3d8Raq5W3iAgThnx0OTq+3h7ke9Bl 3IOaIGBRrNAOusAnpZTdZgU9gAqZhVGRwPA6n+cI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180607110622eucas1p171172d0bd6a4acd3c44ec909514bdc46~13AmHpoiL0961309613eucas1p1U; Thu, 7 Jun 2018 11:06:22 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id FD.B8.05700.DA1191B5; Thu, 7 Jun 2018 12:06:21 +0100 (BST) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180607110621eucas1p1ae6f19b0b2fcd47f89f088ff81e36155~13AlWUzlq2075820758eucas1p13; Thu, 7 Jun 2018 11:06:21 +0000 (GMT) X-AuditID: cbfec7f2-1c1ff70000011644-bb-5b1911ad9a8a Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 20.CB.04183.DA1191B5; Thu, 7 Jun 2018 12:06:21 +0100 (BST) Received: from AMDC2765.digital.local ([106.116.147.25]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P9Y0097E9IGLAA0@eusync1.samsung.com>; Thu, 07 Jun 2018 12:06:21 +0100 (BST) From: Marek Szyprowski To: dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org Cc: Marek Szyprowski , Inki Dae , Seung-Woo Kim , Bartlomiej Zolnierkiewicz , Andrzej Pietrasiewicz Subject: [PATCH 4/9] drm/exynos: scaler: Fix support for YUV420, YUV422 and YUV444 modes Date: Thu, 07 Jun 2018 13:06:09 +0200 Message-id: <20180607110614.335-5-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20180607110614.335-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAIsWRmVeSWpSXmKPExsWy7djP87prBSWjDRaf07OY9bKdxWLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnLbjFj8ks2B3aP+93HmTz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoEr4+K5EywFO7krWu98ZWtgvMLZxcjJISFgIvFi9n2mLkYuDiGBFYwSNzYvYIVwPjNK XF0/mxWmave8FywQiWWMEt96VzFDOA1MEsv/bWcDqWITMJToetsFZosIuEk0HZ4JNopZ4DGj xNrdm9lBEsICURI35i9i7GLk4GARUJVo6mUECfMKWEvs7V7HCLFNXmL1hgPMIDangI3E+WWb mCDiP1klrlwVhbBdJOZ92wl1nbDEq+Nb2CFsGYnLk7vBLpUQaGaUaJ8xix3C6WGU2DpnBxtE lbXE4eMXwbqZBfgkJm2bzgxykIQAr0RHmxBEiYfEiTVrob7sZ5Q4MPkG8wRGyQWMDKsYxVNL i3PTU4sN81LL9YoTc4tL89L1kvNzNzEC4+30v+OfdjB+vZR0iFGAg1GJh/fGQ/FoIdbEsuLK 3EOMEhzMSiK8iZfEooV4UxIrq1KL8uOLSnNSiw8xSnOwKInzxmnURQkJpCeWpGanphakFsFk mTg4pRoYN1XxLVgtOP2KOWNxaKy4rHDfYlv5htmvyibwzXW6E+e9LlVf6ldpQwbPiXn7Jj75 V2U44VNpzJkYnsuiV9IYCjaZ8Kg8qQ5J4Jt4ZsWLl4dyRA95fLNffFCBe770n/VzfyyXW++3 TEq1b14M1/rpG/isJXwl2Q7ZKfpEuMiKOOTN/pAg3zhViaU4I9FQi7moOBEARgG2VbMCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrLJMWRmVeSWpSXmKPExsVy+t/xy7prBSWjDZZM5LKY9bKdxWLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnLbjFj8ks2B3aP+93HmTz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoEr4+K5EywFO7krWu98ZWtgvMLZxcjJISFgIrF73guWLkYuDiGBJYwSk7bsZYVwmpgk LizZxw5SxSZgKNH1tosNxBYRcJNoOjwTrIhZ4DGjxMdtp1hBEsICURIrdrQAjeLgYBFQlWjq ZQQJ8wpYS+ztXscIsU1eYvWGA8wgNqeAjcT5ZZuYQGwhoJq3D06zT2DkWcDIsIpRJLW0ODc9 t9hIrzgxt7g0L10vOT93EyMwULYd+7llB2PXu+BDjAIcjEo8vDceikcLsSaWFVfmHmKU4GBW EuFNvCQWLcSbklhZlVqUH19UmpNafIhRmoNFSZz3vEFllJBAemJJanZqakFqEUyWiYNTqoFx /4431vutiiSvdXx8u01xmrDjy427TNX7/9YKbDwSK8YlYRuTf2LJ7EsdJvHVl6I+fdFicfY6 cfzuiQ252jyTGmsW2B4qOtGRUGD/5sYe1v2t/S039kcxPt7IeflG6MrD4d/vRjw5lz1p3bGN d9vEmjPfyGcc32XvIvS/+XkJ+4zVJkeLxD8WKbEUZyQaajEXFScCAOmDQB4QAgAA X-CMS-MailID: 20180607110621eucas1p1ae6f19b0b2fcd47f89f088ff81e36155 X-Msg-Generator: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180607110621eucas1p1ae6f19b0b2fcd47f89f088ff81e36155 References: <20180607110614.335-1-m.szyprowski@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org Fix Cb/CR components order in two-planar YUV420, YUV422 and YUV444 modes. Signed-off-by: Marek Szyprowski --- drivers/gpu/drm/exynos/exynos_drm_scaler.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) -- 2.17.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/gpu/drm/exynos/exynos_drm_scaler.c b/drivers/gpu/drm/exynos/exynos_drm_scaler.c index d25069e88186..0ddb6eec7b11 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_scaler.c +++ b/drivers/gpu/drm/exynos/exynos_drm_scaler.c @@ -52,9 +52,9 @@ struct scaler_context { static u32 scaler_get_format(u32 drm_fmt) { switch (drm_fmt) { - case DRM_FORMAT_NV21: - return SCALER_YUV420_2P_UV; case DRM_FORMAT_NV12: + return SCALER_YUV420_2P_UV; + case DRM_FORMAT_NV21: return SCALER_YUV420_2P_VU; case DRM_FORMAT_YUV420: return SCALER_YUV420_3P; @@ -64,15 +64,15 @@ static u32 scaler_get_format(u32 drm_fmt) return SCALER_YUV422_1P_UYVY; case DRM_FORMAT_YVYU: return SCALER_YUV422_1P_YVYU; - case DRM_FORMAT_NV61: - return SCALER_YUV422_2P_UV; case DRM_FORMAT_NV16: + return SCALER_YUV422_2P_UV; + case DRM_FORMAT_NV61: return SCALER_YUV422_2P_VU; case DRM_FORMAT_YUV422: return SCALER_YUV422_3P; - case DRM_FORMAT_NV42: - return SCALER_YUV444_2P_UV; case DRM_FORMAT_NV24: + return SCALER_YUV444_2P_UV; + case DRM_FORMAT_NV42: return SCALER_YUV444_2P_VU; case DRM_FORMAT_YUV444: return SCALER_YUV444_3P;