From patchwork Fri Aug 10 13:28:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 10562709 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 2DCF61804 for ; Fri, 10 Aug 2018 13:29:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E69D2B67D for ; Fri, 10 Aug 2018 13:29:21 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1326F2B684; Fri, 10 Aug 2018 13:29:21 +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 2A4B12B67E for ; Fri, 10 Aug 2018 13:29:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727341AbeHJP7N (ORCPT ); Fri, 10 Aug 2018 11:59:13 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:56341 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727563AbeHJP7N (ORCPT ); Fri, 10 Aug 2018 11:59:13 -0400 Received: from eucas1p1.samsung.com (unknown [182.198.249.206]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20180810132916euoutp022064c9914528fc43cd8e47f29e2647d0~JiPpbi_V41132511325euoutp02H for ; Fri, 10 Aug 2018 13:29:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20180810132916euoutp022064c9914528fc43cd8e47f29e2647d0~JiPpbi_V41132511325euoutp02H DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1533907756; bh=bbgQ1NVhUsnXDO2BpEmgNdQTYJNBqdedg+R5msMKCWU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Pp48+RU9khZnAh37QY8LgLggB/pRxEAMjpNEBi6KannqJpLNXEu1mA+IMp4PtoHYq f2Ykw+YiIFee/cIZOiysep4Rnbh1ZbUXFzW3Gf4sYJ5rG5ElZ85Fdeym1mPnLzCfWB lNGCXRvFEgsrvR36qm1ilR9kr9KdJJRpERq7sJXo= Received: from eusmges2new.samsung.com (unknown [203.254.199.244]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20180810132916eucas1p1dcf64464796b978073ce36e16a3ab964~JiPpBdW6w2268722687eucas1p1e; Fri, 10 Aug 2018 13:29:16 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges2new.samsung.com (EUCPMTA) with SMTP id 5A.C2.04294.C239D6B5; Fri, 10 Aug 2018 14:29:16 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20180810132915eucas1p270d9df94b0aaaa17b0eddfb8682bd3bd~JiPoK4ppk2592125921eucas1p2z; Fri, 10 Aug 2018 13:29:15 +0000 (GMT) Received: from eusmgms2.samsung.com (unknown [182.198.249.180]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20180810132915eusmtrp1b6d473a4b2f38bf837ffa68c0eca6655~JiPn7Ecrb1157411574eusmtrp1w; Fri, 10 Aug 2018 13:29:15 +0000 (GMT) X-AuditID: cbfec7f4-835ff700000010c6-7c-5b6d932ca03d Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms2.samsung.com (EUCPMTA) with SMTP id D3.BA.04128.B239D6B5; Fri, 10 Aug 2018 14:29:15 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.116.147.25]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20180810132914eusmtip147b119c0345a0873c0226f10950f6e86~JiPngfwuM1796317963eusmtip1y; Fri, 10 Aug 2018 13:29:14 +0000 (GMT) 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 1/3] drm: drm_fourcc: add Samsung 16x16 tile format Date: Fri, 10 Aug 2018 15:28:59 +0200 X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180810132901.11844-1-m.szyprowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFvrAIsWRmVeSWpSXmKPExsWy7djPc7o6k3OjDVac4rWY9bKdxWLjjPWs Fle+vmezmHR/AovFjPP7mCzWHrnLbjFj8ks2B3aP+93HmTz6tqxi9Pi8SS6AOYrLJiU1J7Ms tUjfLoErY/p+1oJezopjM2azNzCeYu9i5OSQEDCR2PN3CVsXIxeHkMAKRolfew8xQjhfGCVu zXrNCuF8ZpR49XsDI0zLhe97oFqWM0pMa3wH5XxllFi14DozSBWbgKFE19suNhBbRMBNounw TLBRzAKPGSXW7t4Mtl1YwFni4dIpLCA2i4CqxJMlz6GukpdYveEA0CAODk4BO4l78zJAeiUE 7rNJ7P/zDuwMXoEyiRMn9jBB1LtIPJr8hgXCFpZ4dXwL1BwZidOTe1ggmpsZJdpnzGKHcHoY JbbO2cEGUWUtcfj4RVaQbcwCmhLrd+mDmBICjhLfJxdBmHwSN94KghQzA5mTtk1nhgjzSnS0 CUHMUJOYdXwd3NaDFy5BlXhIXGlxgATPREaJXVPbGScwys9CWLWAkXEVo3hqaXFuemqxUV5q uV5xYm5xaV66XnJ+7iZGYDo4/e/4lx2Mu/4k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/7zie7r9BwwLLr98m6W80MvR6OI6FSWW4oxEQy3m ouJEABKv/ExkAgAA Message-Id: <20180810132915eucas1p270d9df94b0aaaa17b0eddfb8682bd3bd~JiPoK4ppk2592125921eucas1p2z@eucas1p2.samsung.com> X-CMS-MailID: 20180810132915eucas1p270d9df94b0aaaa17b0eddfb8682bd3bd X-Msg-Generator: CA X-RootMTR: 20180810132915eucas1p270d9df94b0aaaa17b0eddfb8682bd3bd X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20180810132915eucas1p270d9df94b0aaaa17b0eddfb8682bd3bd References: <20180810132901.11844-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 X-Virus-Scanned: ClamAV using ClamSMTP From: Andrzej Pietrasiewicz Add modifier for tiled formats used by graphics modules found in Samsung Exynos5250/542x/5433 SoCs. This is a simple tiled layout using tiles of 16x16 pixels in a row-major layout. Signed-off-by: Andrzej Pietrasiewicz Signed-off-by: Marek Szyprowski Reviewed-by: Inki Dae --- include/uapi/drm/drm_fourcc.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 721ab7e54d96..5631b196c07a 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -299,6 +299,15 @@ extern "C" { */ #define DRM_FORMAT_MOD_SAMSUNG_64_32_TILE fourcc_mod_code(SAMSUNG, 1) +/* + * Tiled, 16 (pixels) x 16 (lines) - sized macroblocks + * + * This is a simple tiled layout using tiles of 16x16 pixels in a row-major + * layout. For YCbCr formats Cb/Cr components are taken in such a way that + * they correspond to their 16x16 luma block. + */ +#define DRM_FORMAT_MOD_SAMSUNG_16_16_TILE fourcc_mod_code(SAMSUNG, 2) + /* * Qualcomm Compressed Format *