From patchwork Wed Oct 18 09:41:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Yan X-Patchwork-Id: 13426771 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id E1162CDB47E for ; Wed, 18 Oct 2023 09:41:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0967010E12A; Wed, 18 Oct 2023 09:41:45 +0000 (UTC) Received: from m15.mail.163.com (m15.mail.163.com [45.254.50.219]) by gabe.freedesktop.org (Postfix) with ESMTP id BEFB310E12A for ; Wed, 18 Oct 2023 09:41:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-Id:MIME-Version; bh=KyufP Gb3cqH8zioLS7lrQHPVVPvHYmUqJ25IUFAAyko=; b=OkbIb3hEDFvSzSIqDV5fZ G5yd/OUwv/5sBIQUQPcOeLvph4rfgSWCaMjutz3ASfL7HO/VCaqZ/1LkPNx+n69M ilR9+1/rv+UaT/dij61h/0xmLTIj0cMTIDmsQf/lQwG6hSoG1LufKIqVzio3tRQa V1sHZ77oMWdEMl+yIYTY7Q= Received: from ProDesk.. (unknown [58.22.7.114]) by zwqz-smtp-mta-g2-4 (Coremail) with SMTP id _____wD3P3tEqC9lQkp+Aw--.37510S2; Wed, 18 Oct 2023 17:41:28 +0800 (CST) From: Andy Yan To: linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org, heiko@sntech.de, jonas@kwiboo.se Subject: [PATCH v3 0/4] Add more format for vop2 driver Date: Wed, 18 Oct 2023 17:41:22 +0800 Message-Id: <20231018094122.2475668-1-andyshrk@163.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CM-TRANSID: _____wD3P3tEqC9lQkp+Aw--.37510S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Gry5urW7tr4DZry7Cr1kAFb_yoWDXrcEk3 yxJ345uFy8AF98Gas2qws7GrZ7tay29Fn0gFyvyF48Jas3Zr1kJ3ykCrZFqa4FvFW3Arn7 Ja4UXrWIkF9rujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0KiiDUUUUU== X-Originating-IP: [58.22.7.114] X-CM-SenderInfo: 5dqg52xkunqiywtou0bp/1tbiTAoNXmI0bm1VQQAAsU X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andy Yan , s.hauer@pengutronix.de, sjoerd.simons@collabora.com, hjc@rock-chips.com, sebastian.reichel@collabora.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" From: Andy Yan This is a preparation for the upcoming support for rk3588 vop. Patch 1 make the bpp calculation covery more format Patch 2 remove formats that are unsupported by cluster windows Patch 3 add more formats Patch 4 is a format table rename And I drop two patches that have applied by Heiko[0] [0]https://patchwork.kernel.org/project/linux-rockchip/cover/20231013122001.1594009-1-andyshrk@163.com/ Changes in v3: - add a bpp calculation function - split patch - add format check and convert Andy Yan (4): drm/rockchip: fix vop format bpp calculation drm/rockchip: remove the unsupported format of vop2 cluster window drm/rockchip: Add more format supported by vop2 drm/rockchip: rename windows format for vop2 drivers/gpu/drm/rockchip/rockchip_drm_vop2.c | 71 +++++++++++++++----- drivers/gpu/drm/rockchip/rockchip_vop2_reg.c | 55 ++++++++------- 2 files changed, 85 insertions(+), 41 deletions(-) Acked-by: Sascha Hauer