From patchwork Fri Jun 21 10:21:08 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Smith X-Patchwork-Id: 11009715 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 E2A25112C for ; Fri, 21 Jun 2019 10:21:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D25CD289D4 for ; Fri, 21 Jun 2019 10:21:14 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C63E0289EC; Fri, 21 Jun 2019 10:21:14 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 82C65289D4 for ; Fri, 21 Jun 2019 10:21:14 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 400CD6E43A; Fri, 21 Jun 2019 10:21:12 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50048.outbound.protection.outlook.com [40.107.5.48]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2B2F06E43A for ; Fri, 21 Jun 2019 10:21:11 +0000 (UTC) Received: from VI1PR08MB3199.eurprd08.prod.outlook.com (52.133.15.150) by VI1PR08MB3918.eurprd08.prod.outlook.com (20.178.81.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1987.11; Fri, 21 Jun 2019 10:21:08 +0000 Received: from VI1PR08MB3199.eurprd08.prod.outlook.com ([fe80::fd75:e620:3b39:6712]) by VI1PR08MB3199.eurprd08.prod.outlook.com ([fe80::fd75:e620:3b39:6712%7]) with mapi id 15.20.2008.007; Fri, 21 Jun 2019 10:21:08 +0000 From: Raymond Smith To: "maarten.lankhorst@linux.intel.com" , "maxime.ripard@bootlin.com" , "sean@poorly.run" , "airlied@linux.ie" , "daniel@ffwll.ch" Subject: [PATCH] drm/fourcc: Add Arm 16x16 block modifier Thread-Topic: [PATCH] drm/fourcc: Add Arm 16x16 block modifier Thread-Index: AQHVKBsKBvRwqAaS30eXmbt21cTJQg== Date: Fri, 21 Jun 2019 10:21:08 +0000 Message-ID: <1561112433-5308-1-git-send-email-raymond.smith@arm.com> Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [217.140.106.52] x-clientproxiedby: LO2P265CA0251.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:8a::23) To VI1PR08MB3199.eurprd08.prod.outlook.com (2603:10a6:803:47::22) x-mailer: git-send-email 2.7.4 x-ms-exchange-messagesentrepresentingtype: 1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2a05b52d-6092-4bd9-9be4-08d6f6322cb6 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:VI1PR08MB3918; x-ms-traffictypediagnostic: VI1PR08MB3918: nodisclaimer: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:972; x-forefront-prvs: 0075CB064E x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(376002)(136003)(396003)(366004)(346002)(39860400002)(189003)(199004)(6436002)(68736007)(102836004)(6512007)(386003)(6506007)(476003)(54906003)(110136005)(66946007)(73956011)(66556008)(66446008)(64756008)(36756003)(99286004)(2906002)(66476007)(53936002)(14444005)(44832011)(256004)(26005)(186003)(6486002)(2616005)(4744005)(71190400001)(71200400001)(8936002)(7736002)(305945005)(14454004)(2501003)(86362001)(2201001)(25786009)(478600001)(486006)(52116002)(316002)(8676002)(3846002)(81156014)(81166006)(66066001)(6116002)(50226002)(4326008)(72206003)(5660300002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR08MB3918; H:VI1PR08MB3199.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: mKBl+fFdbhOvVDneJsZGiV7ZQTPVa0pzICBZe1lPI8okQAeHybD78eA4BiUtTBKp2ZZZKL1PSkWkkf2MloYljeNg6oeN4SrgJFt6yu6jKnjTkiLhLwvBWPlrDqZu0M+6TGDHxnsS2jteFxe98pj3x6OX+b3iYQwrx2FB5Wkkz2RxmU/4Q84S8yS0dDLdRwQOkIAR/ackguOBbB7pYxUp/fBSo6+kSvTdVtC7PEAe4h2/HzQIQmHHYtSsX9ixXphK50iPK9H3uxk9IFuh85Ed0qJD66MN9E71swxiswQVQDhE+f/TYR1nINqI8L01R4Ix40yVMNvxtFS5O+vCu3cGUycYqedFvDlIwTuWLjMt+L+UxHlgM8BTmmu9JNim0opNZInXN6yPILowtUZ46xrP5/hT79H6gdo4cv7muT61QHk= MIME-Version: 1.0 X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a05b52d-6092-4bd9-9be4-08d6f6322cb6 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Jun 2019 10:21:08.6042 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Raymond.Smith@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB3918 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j3A4p9Pnv4EC/0TQbCHNhU5vFSTW735fTudNQm6vwHM=; b=xXqw9wwXKqFI1JgFI+MjsJdAPiYzFc5CKveGyN+oN031HEEhOR10+TCdGl8F8zIgYcL/EY+AqJ0T0SrMk3J/s1UufMLRCF9eBjMPK+EpzhbV8i/GWROgS5SECsxkmjkKUmIoaUCNnynW276R6tpzQTqFmzDL9HoIbaCZgRABY9g= X-Mailman-Original-Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Raymond.Smith@arm.com; X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: nd , "linux-kernel@vger.kernel.org" , "dri-devel@lists.freedesktop.org" , "malidp@foss.arm.com" , "yuq825@gmail.com" , Ayan Halder Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Add the DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED modifier to denote the 16x16 block u-interleaved format used in Arm Utgard and Midgard GPUs. Signed-off-by: Raymond Smith Reviewed-by: Brian Starkey --- include/uapi/drm/drm_fourcc.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/uapi/drm/drm_fourcc.h b/include/uapi/drm/drm_fourcc.h index 3feeaa3..8ed7ecf 100644 --- a/include/uapi/drm/drm_fourcc.h +++ b/include/uapi/drm/drm_fourcc.h @@ -743,6 +743,16 @@ extern "C" { #define AFBC_FORMAT_MOD_BCH (1ULL << 11) /* + * Arm 16x16 Block U-Interleaved modifier + * + * This is used by Arm Mali Utgard and Midgard GPUs. It divides the image + * into 16x16 pixel blocks. Blocks are stored linearly in order, but pixels + * in the block are reordered. + */ +#define DRM_FORMAT_MOD_ARM_16X16_BLOCK_U_INTERLEAVED \ + fourcc_mod_code(ARM, ((1ULL << 55) | 1)) + +/* * Allwinner tiled modifier * * This tiling mode is implemented by the VPU found on all Allwinner platforms,