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: 143924 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3360534ljj; Fri, 10 Aug 2018 06:29:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwuKVw3IE+Ya4T1ltB6r5XQy6P5rEZjZViHvqTqryAGfGmFPgep2kGSHrtOrAfpdn3uvjtH X-Received: by 2002:a63:dd49:: with SMTP id g9-v6mr6448148pgj.356.1533907759563; Fri, 10 Aug 2018 06:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533907759; cv=none; d=google.com; s=arc-20160816; b=OZMhfFj7QxTOEQD3bfyH/pLRC6t7VC4aEqFkyrLrYg7HoaPR1OQh1+QpcX9ctdIBp7 3IV6vQWBm+JLLQSKGi1vWlnNu/W8iYLBwDCgw8jVjK4zGwAKMESZqPaov6ALbmXi2noO 7SohjbjN5jpKoq6pMmbX3aETE5WlILH5XQBeZuQtDwYJJ5bm1E5aL5kNjhr0tRzIkLLX Thhn6U645nM5Zvwdx2Gxd2U9PhPv0pazCOTuurllsqs4vOZLwQEA2AkWDc6b0WCTggQj UgDPm0eEiisuxzVTsEHlOuxtrKQQNKt7p8Ps8CRCGsSf8Dq7bnl1HVFJmtMjVVKItLui JSXw== 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:message-id :in-reply-to:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=bbgQ1NVhUsnXDO2BpEmgNdQTYJNBqdedg+R5msMKCWU=; b=oFBwZA6JYJ0lLMV4uUDEP1AlwJZ/c+KWVqiTrfZg3kmujPDzQ3TUcInu2evICKpDaz OqhTfRbR0aoND9mFKAOmLm2P6k5E/O9AEevcFZesDqiLdsUDIJ8/AUVdsvPrwrb06Do8 Z9aiy35ugAP4s5qJzL4xyFT0TTyGMF6WbovSItxGhQ904mkVq2P7QLxxuIaCGqC/1WcK j+FiqWX4ggU5GKAn0V+Ee2MkOlXWiXYyyHuIx42scMHlXdU2DgefkBowfBlg+geISFtS y/2CdFlnKFYIRcLlWr5tha7/7SADqv8R2bM84SFTjAhP+7RcGV99tP+MabuDwwmtMp/M kGGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=Pp48+RU9; 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=pass (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 e186-v6si10172744pfc.176.2018.08.10.06.29.19; Fri, 10 Aug 2018 06:29:19 -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=pass header.i=@samsung.com header.s=mail20170921 header.b=Pp48+RU9; 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=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727341AbeHJP7N (ORCPT + 3 others); 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 CUHMUJOYdXwd3NaDFy5BlXhIXGl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KfdZ61W+RyvZBv09KvEq889u+4rDR9a/CC/6zZWo8WLm3gv75g TvWbzAvPzleUy3PPXCZbrxKavEX9ZnHk/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 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 --- include/uapi/drm/drm_fourcc.h | 9 +++++++++ 1 file changed, 9 insertions(+) -- 2.17.1 Reviewed-by: Inki Dae 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 *