From patchwork Wed Mar 20 13:07:06 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10861597 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 55A331575 for ; Wed, 20 Mar 2019 13:07:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 35F8828B92 for ; Wed, 20 Mar 2019 13:07:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3458429BD8; Wed, 20 Mar 2019 13:07:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D521E28BA9 for ; Wed, 20 Mar 2019 13:07:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727359AbfCTNHY (ORCPT ); Wed, 20 Mar 2019 09:07:24 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:58278 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727415AbfCTNHY (ORCPT ); Wed, 20 Mar 2019 09:07:24 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190320130723euoutp028ba0c6eb721693b05761f695fdd2e1ff~NrJ51iL6W1535315353euoutp02O; Wed, 20 Mar 2019 13:07:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190320130723euoutp028ba0c6eb721693b05761f695fdd2e1ff~NrJ51iL6W1535315353euoutp02O DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553087243; bh=rCyWFMfEVy9YOrKqMuoPYN29tJ86LEQrYAp9QJAHdqw=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=e0C3YO1tCoCEOOPMWjA3bHq3ZDSwQJEBn8lLaSq0t5WS4gDfdg8aCnWUNRcqIXS2t /iIFmvhaumgQhWJ/zy+KThEdo6PpK34Ytrk7tI9nrC6ddiT9YEuC9wd/y+NywLGmUR VRuruXq76vtBYie1rrdHEJzlBkEG/4L3uv4Dnc7I= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190320130722eucas1p2c14b84e6c0947f465619cc3602a66102~NrJ5SWt1w1038110381eucas1p22; Wed, 20 Mar 2019 13:07:22 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id FE.92.04806.A0B329C5; Wed, 20 Mar 2019 13:07:22 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190320130721eucas1p258d3ace8294e90446d369c1d45941dc9~NrJ4mWtiN0972809728eucas1p2J; Wed, 20 Mar 2019 13:07:21 +0000 (GMT) X-AuditID: cbfec7f5-34dff700000012c6-3b-5c923b0a5f87 Received: from eusync1.samsung.com ( [203.254.199.211]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 7B.AF.04284.90B329C5; Wed, 20 Mar 2019 13:07:21 +0000 (GMT) Received: from AMDC3748.DIGITAL.local ([106.120.43.17]) by eusync1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0POO004P71RZN460@eusync1.samsung.com>; Wed, 20 Mar 2019 13:07:21 +0000 (GMT) From: Andrzej Hajda To: Inki Dae Cc: Andrzej Hajda , Bartlomiej Zolnierkiewicz , Marek Szyprowski , dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, Krzysztof Kozlowski Subject: [PATCH v2 RESEND 23/24] drm/exynos/gscaler: change supported color format BGRX8888 to XBGR8888 Date: Wed, 20 Mar 2019 14:07:06 +0100 Message-id: <20190320130707.25161-24-a.hajda@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190320130707.25161-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprFIsWRmVeSWpSXmKPExsWy7djP87pc1pNiDKa95bG4te4cq8XGGetZ La58fc9mMen+BBaL8+c3sFvMOL+PyWLtkbvsDuwem1Z1snnc7z7O5NG3ZRWjx+dNcgEsUVw2 Kak5mWWpRfp2CVwZF95/Yipo4al4OrObtYFxHlcXIyeHhICJxJ5Hr5i6GLk4hARWMEpM6pvM BuF8ZpR4vPkGO0zVhI5+qMQyRonDG5+yQzj/GSXm//rABlLFJqAp8XfzTTBbREBZYtW+drAi ZoHfjBLTl28DGyUskCkx98kGZhCbRUBV4vX2BywgNq+ApcS9Y9PYINbJS6zecACshhMo/nDO f7BBEgJ/WSUOXDzLBFHkIrH88VJWCFtGorPjIFS8XuL+ihZmiIYORomtG3YyQySsJQ4fvwjW wCzAJzFp23SgOAdQnFeio00IosRD4tq2r1B/9jBK3F32l3ECo8QCRoZVjOKppcW56anFxnmp 5XrFibnFpXnpesn5uZsYgTF2+t/xrzsY9/1JOsQowMGoxMN74fmEGCHWxLLiytxDjBIczEoi vBFKk2KEeFMSK6tSi/Lji0pzUosPMUpzsCiJ81YzPIgWEkhPLEnNTk0tSC2CyTJxcEo1MLrb hGXd+2cU+mTO6kWVhw5zqGqu+C8cybvrzjv2iIZL/BUVAfv2WTwxs1aK+GKct6HFuzUtJHZB 279X69ZZpPv9N5i633fiTV1v8Y2LXeLvWM/p3DtDsCrrX3S2S1L1o6PV1cErX6Ze2q0+lemy SOWUo/HlBcwPl/uxZ078sy488FH4O6k7U5RYijMSDbWYi4oTAcqSJk6tAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmluLIzCtJLcpLzFFi42I5/e/4ZV1O60kxBv9Oa1jcWneO1WLjjPWs Fle+vmezmHR/AovF+fMb2C1mnN/HZLH2yF12B3aPTas62Tzudx9n8ujbsorR4/MmuQCWKC6b lNSczLLUIn27BK6MC+8/MRW08FQ8ndnN2sA4j6uLkZNDQsBEYkJHP1sXIxeHkMASRonl538x QjiNTBJzT75gBqliE9CU+Lv5JhuILSKgLLFqXzs7SBGzwG9Gic8zvoIVCQtkSsx9sgHMZhFQ lXi9/QELiM0rYClx79g0Noh18hKrNxwAq+EEij+c858dxBYSsJBYfOIu4wRGngWMDKsYRVJL i3PTc4sN9YoTc4tL89L1kvNzNzECg2bbsZ+bdzBe2hh8iFGAg1GJh7fi6YQYIdbEsuLK3EOM EhzMSiK8EUqTYoR4UxIrq1KL8uOLSnNSiw8xSnOwKInznjeojBISSE8sSc1OTS1ILYLJMnFw SjUwynAGu/Et1XUUfKv0Uth9s7VRUtPRBY29HM5luyozfz7hbFkx2cLoqgZz3/bre131juis /HHG7l751EMHDS/e3L4mdkP8qik3pI6pZc1YmPUuZ2n1xxgtz10nRLUars9c9O/gg5Sg4/fy 9rItOuH/i1fn2iSLvHxVe5Pqyd47Dq+pXR8WJzNHQYmlOCPRUIu5qDgRAOoJqW4WAgAA X-CMS-MailID: 20190320130721eucas1p258d3ace8294e90446d369c1d45941dc9 CMS-TYPE: 201P X-CMS-RootMailID: 20190320130721eucas1p258d3ace8294e90446d369c1d45941dc9 References: <20190320130707.25161-1-a.hajda@samsung.com> Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP GSCALER does not support BGRX8888, instead it supports XBGR8888. Signed-off-by: Andrzej Hajda --- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exynos/exynos_drm_gsc.c index 28a738a68a82..c7a97d053ab1 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -502,7 +502,7 @@ static void gsc_src_set_fmt(struct gsc_context *ctx, u32 fmt, bool tiled) case DRM_FORMAT_ARGB8888: cfg |= GSC_IN_XRGB8888; break; - case DRM_FORMAT_BGRX8888: + case DRM_FORMAT_XBGR8888: cfg |= (GSC_IN_XRGB8888 | GSC_IN_RB_SWAP); break; case DRM_FORMAT_YUYV: @@ -689,7 +689,7 @@ static void gsc_dst_set_fmt(struct gsc_context *ctx, u32 fmt, bool tiled) case DRM_FORMAT_XRGB8888: cfg |= (GSC_OUT_XRGB8888 | GSC_OUT_GLOBAL_ALPHA(0xff)); break; - case DRM_FORMAT_BGRX8888: + case DRM_FORMAT_XBGR8888: cfg |= (GSC_OUT_XRGB8888 | GSC_OUT_RB_SWAP); break; case DRM_FORMAT_YUYV: @@ -1197,7 +1197,7 @@ static struct exynos_drm_ipp_funcs ipp_funcs = { }; static const unsigned int gsc_formats[] = { - DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888, DRM_FORMAT_BGRX8888, + DRM_FORMAT_ARGB8888, DRM_FORMAT_XRGB8888, DRM_FORMAT_XBGR8888, DRM_FORMAT_RGB565, DRM_FORMAT_NV12, DRM_FORMAT_NV16, DRM_FORMAT_NV21, DRM_FORMAT_NV61, DRM_FORMAT_UYVY, DRM_FORMAT_VYUY, DRM_FORMAT_YUYV, DRM_FORMAT_YVYU,