From patchwork Mon Mar 25 07:13:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10868061 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 0710117EE for ; Mon, 25 Mar 2019 07:14:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E499929246 for ; Mon, 25 Mar 2019 07:14:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0A6F29255; Mon, 25 Mar 2019 07:14:06 +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 6580529246 for ; Mon, 25 Mar 2019 07:14:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729800AbfCYHOF (ORCPT ); Mon, 25 Mar 2019 03:14:05 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:59712 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729786AbfCYHOE (ORCPT ); Mon, 25 Mar 2019 03:14:04 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190325071403euoutp02b438fbafbdc75007f71d9b2fb3341191~PIj11TNRQ0730507305euoutp02L; Mon, 25 Mar 2019 07:14:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190325071403euoutp02b438fbafbdc75007f71d9b2fb3341191~PIj11TNRQ0730507305euoutp02L DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1553498043; bh=rCyWFMfEVy9YOrKqMuoPYN29tJ86LEQrYAp9QJAHdqw=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=aSLAxMcHJmspoRBOrrIoJImbPB7Zmxzg44yt6JAE17e/aNY0Hhk5W4sv7puZJ2bL0 BQA6lEkx7xmjsrHL59GA8xtWVLj/b2jHOuqG0UbSzJQ3/JwF1KUYpBxsbgEbIJtVvw O0x1NVMDAmw3eITjI8EYW+t6zUhewBmSNobv6LEs= Received: from eusmges3new.samsung.com (unknown [203.254.199.245]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190325071403eucas1p2e6f072e1798cc61003a18a84ba23ed3e~PIj1ccq212650726507eucas1p2b; Mon, 25 Mar 2019 07:14:03 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges3new.samsung.com (EUCPMTA) with SMTP id 0F.4E.04325.BBF789C5; Mon, 25 Mar 2019 07:14:03 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20190325071402eucas1p1b21cd8cb6a2bfa0349821597b6291af5~PIj0y65lD2091720917eucas1p1g; Mon, 25 Mar 2019 07:14:02 +0000 (GMT) X-AuditID: cbfec7f5-b8fff700000010e5-a7-5c987fbb256e Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 88.69.04146.ABF789C5; Mon, 25 Mar 2019 07:14:02 +0000 (GMT) Received: from AMDC3748.DIGITAL.local ([106.120.51.74]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0POW003QHUR43P00@eusync3.samsung.com>; Mon, 25 Mar 2019 07:14:02 +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 v3 RESEND 23/24] drm/exynos/gscaler: change supported color format BGRX8888 to XBGR8888 Date: Mon, 25 Mar 2019 08:13:48 +0100 Message-id: <20190325071349.22600-24-a.hajda@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190325071349.22600-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsWy7djP87q762fEGJy4z2Fxa905VouNM9az Wlz5+p7NYtL9CSwW589vYLeYcX4fk8XaI3fZHdg9Nq3qZPO4332cyaNvyypGj8+b5AJYorhs UlJzMstSi/TtErgyLrz/xFTQwlPxdGY3awPjPK4uRk4OCQETiR0TH7F0MXJxCAmsYJS4uec5 C0hCSOAzo8Shg6UwRW+mHWCHKFrGKLF6ywtmCOc/o8SxDa2sIFVsApoSfzffZAOxRQSUJVbt awfrYBb4zSgxffk2dpCEsECmxJQLV5lAbBYBVYmOT1PAmnkFLCUu/FvCBLFOXmL1hgPMIDYn UPz/6Utg2yQE/rJK3O7YDFXkIrFozVNWCFtGorPjIFS8XuL+ihaohg5Gia0bdjJDJKwlDh+/ CNbALMAnMWnbdKA4B1CcV6KjTQiixENi0/bX7BD/9zBKvFxkOIFRYgEjwypG8dTS4tz01GLj vNRyveLE3OLSvHS95PzcTYzA+Dr97/jXHYz7/iQdYhTgYFTi4X2xc3qMEGtiWXFl7iFGCQ5m JRHeJ6IzYoR4UxIrq1KL8uOLSnNSiw8xSnOwKInzVjM8iBYSSE8sSc1OTS1ILYLJMnFwSjUw nt8mPzNM56/E7NhX17Y7FCsbbYqPMVu8MnvRKvWrur8MEvJYjVUn/7HJ+LymIFdb/J/oveRQ b4GXXOl7FoUVpXZeSCtiXruPsU77U6KLwmIuPg07xTlNqzbPe79o8Zz50hGH+nrW32bQEjzj tHN5hNcx43g7vaVba0y50j49eXpQZ2XN1ONpSizFGYmGWsxFxYkA2TpMHqsCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpmluLIzCtJLcpLzFFi42I5/e/4Vd1d9TNiDN7u0rK4te4cq8XGGetZ La58fc9mMen+BBaL8+c3sFvMOL+PyWLtkbvsDuwem1Z1snnc7z7O5NG3ZRWjx+dNcgEsUVw2 Kak5mWWpRfp2CVwZF95/Yipo4al4OrObtYFxHlcXIyeHhICJxJtpB9i7GLk4hASWMEpMOvKO FcJpZJL42NrCClLFJqAp8XfzTTYQW0RAWWLVvnawDmaB34wSn2d8ZQZJCAtkSky5cJUJxGYR UJXo+DQFrJlXwFLiwr8lTBDr5CVWbzgAVs8JFP9/+hKYLSRgIbF3WSP7BEaeBYwMqxhFUkuL c9Nziw31ihNzi0vz0vWS83M3MQKDZtuxn5t3MF7aGHyIUYCDUYmH12HP9Bgh1sSy4srcQ4wS HMxKIrxPRGfECPGmJFZWpRblxxeV5qQWH2KU5mBREuc9b1AZJSSQnliSmp2aWpBaBJNl4uCU amCsXbPvwf1dPG8KNYy0S8ui5tWGNC1yLts78//0/nnSmc5+C8SWRWf27S33v3DocUBMiP81 2SrGvouzXJY7tdfMWZm+49tN/c2vBYufRf/7pmkZd9VUbkH3bf2H0exrjCR4Ph+bURe/3I+7 MuiXpr5jfFXADR7z5ENaOp2dTCelg14Elm54maLEUpyRaKjFXFScCAAv72jlFgIAAA== X-CMS-MailID: 20190325071402eucas1p1b21cd8cb6a2bfa0349821597b6291af5 CMS-TYPE: 201P X-CMS-RootMailID: 20190325071402eucas1p1b21cd8cb6a2bfa0349821597b6291af5 References: <20190325071349.22600-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,