From patchwork Fri Mar 1 12:20:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 10835091 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 EE0EE188E for ; Fri, 1 Mar 2019 12:21:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DC1AC2D900 for ; Fri, 1 Mar 2019 12:21:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D067D2D964; Fri, 1 Mar 2019 12:21:18 +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 48E7F2D931 for ; Fri, 1 Mar 2019 12:21:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388198AbfCAMVR (ORCPT ); Fri, 1 Mar 2019 07:21:17 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39191 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387769AbfCAMVQ (ORCPT ); Fri, 1 Mar 2019 07:21:16 -0500 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190301122115euoutp02108db8dd894820c8ea2ef2aef9cadd7d~H1RM7w33p2156121561euoutp02x; Fri, 1 Mar 2019 12:21:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190301122115euoutp02108db8dd894820c8ea2ef2aef9cadd7d~H1RM7w33p2156121561euoutp02x DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1551442875; bh=rCyWFMfEVy9YOrKqMuoPYN29tJ86LEQrYAp9QJAHdqw=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=QiHmKk9Oj9WABFZkfWoIKORzGDz/pFbeRNSCa33bd3Mhxjn/18vPa+LVd/f8gt0Ji mgd72jptGp9sVieHwgVk/DvAyAsktt6/hXmQq+2TbcBNLaYYBhAvjLav0RmzaW/0oa hhVGJPr6zEx9UEPfR1HRiU/GDHUGKQwtdaE/hs8I= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190301122114eucas1p2d2e8db3cb2ee3e4b5043a8767bc4dc7c~H1RMhF0Hy1653116531eucas1p2s; Fri, 1 Mar 2019 12:21:14 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id DE.CC.04294.AB3297C5; Fri, 1 Mar 2019 12:21:14 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190301122114eucas1p2f8722a93496077bfa60c7865781763b9~H1RL4SCab1654016540eucas1p2Y; Fri, 1 Mar 2019 12:21:14 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-17-5c7923ba0a7b Received: from eusync3.samsung.com ( [203.254.199.213]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id 5A.6C.04128.AB3297C5; Fri, 1 Mar 2019 12:21:14 +0000 (GMT) Received: from AMDC3748.DIGITAL.local ([106.120.43.17]) by eusync3.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0PNO007ENSZ56Z20@eusync3.samsung.com>; Fri, 01 Mar 2019 12:21:14 +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 Subject: [PATCH 22/23] drm/exynos/gscaler: change supported color format BGRX8888 to XBGR8888 Date: Fri, 01 Mar 2019 13:20:54 +0100 Message-id: <20190301122055.7135-23-a.hajda@samsung.com> X-Mailer: git-send-email 2.17.1 In-reply-to: <20190301122055.7135-1-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAIsWRmVeSWpSXmKPExsWy7djPc7q7lCtjDCa/U7C4te4cq8XGGetZ La58fc9mMen+BBaLGef3MVmsPXKX3YHN4373cSaPvi2rGD0+b5ILYI7isklJzcksSy3St0vg yrjw/hNTQQtPxdOZ3awNjPO4uhg5OSQETCQOH9rK2sXIxSEksIJR4vfv6VDOZ0aJmQuWscBU LX4ynQUisQwocXkTM4Tzn1FiwdNfbCBVbAKaEn833wSzRQSUJVbta2cHKWIWuMQo8fpkNyNI QlggXuLNpHlgRSwCqhLL9vwAW8ErYCFxYddHRoh18hKrNxxgBrE5geIHV0IMkhB4yypx+lMH E0SRi8TxTc/YIGwZicuTu6FurZdomnmFGaKhg1HixOLlUEXWEoePX2QFsZkF+CQmbZsOVMQB FOeV6GgTgijxkPjTdgnqtW5Gic/Hj7FMAPqQkWEVo3hqaXFuemqxUV5quV5xYm5xaV66XnJ+ 7iZGYDyd/nf8yw7GXX+SDjEKcDAq8fAmvCyPEWJNLCuuzD3EKMHBrCTCy8dQGSPEm5JYWZVa lB9fVJqTWnyIUZqDRUmct5rhQbSQQHpiSWp2ampBahFMlomDU6qBcaumeqbUg08Bi4/P/FA3 VcZq7dm5LzT48+uLmrg2zQrlS68ptd+59911Kb7ekuNbFp578+5M/q5pl18ee1P3pzKWLamQ v/uDwJ7ozNCJvRZiGm387ycc45kve2eCtvf9lICH+2+9OJ0xt07B45Ha3beiXFsn1SSdeu8c UFR+yS7F4ObSynvb1JRYijMSDbWYi4oTAcYYUgmjAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrBJMWRmVeSWpSXmKPExsVy+t/xq7q7lCtjDL51s1jcWneO1WLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnL7sDmcb/7OJNH35ZVjB6fN8kFMEdx2aSk5mSWpRbp2yVw ZVx4/4mpoIWn4unMbtYGxnlcXYycHBICJhKLn0xn6WLk4hASWMIosaZ1BiuE08gk0XuqiQmk ik1AU+Lv5ptsILaIgLLEqn3t7CBFzAJXGCXav3WxgySEBeIl3kyaB1bEIqAqsWzPDxYQm1fA QuLCro+MEOvkJVZvOMAMYnMCxQ+uBBnEAbTNXGLT6agJjDwLGBlWMYqklhbnpucWG+kVJ+YW l+al6yXn525iBIbHtmM/t+xg7HoXfIhRgINRiYc34WV5jBBrYllxZe4hRgkOZiURXj6Gyhgh 3pTEyqrUovz4otKc1OJDjNIcLErivOcNKqOEBNITS1KzU1MLUotgskwcnFINjKHcNaWbOpse Kd9Iyz3+X7rXMWs/e+WFEyv7et0+ZWyo74qbXPzusuN8uSLdZY9WSDAlP/L+fsy1kEddYZrK 5vn1OmEhmy6suVZdOrXlyK7cbTNm/XsjcHbRvs97JdTalGd2dns+lz979OQtpavpoRvU2K5L Mv64eulqgFJYqH24tJN4TYziRCWW4oxEQy3mouJEANaKaUYLAgAA X-CMS-MailID: 20190301122114eucas1p2f8722a93496077bfa60c7865781763b9 CMS-TYPE: 201P X-CMS-RootMailID: 20190301122114eucas1p2f8722a93496077bfa60c7865781763b9 References: <20190301122055.7135-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,