From patchwork Thu Jul 20 02:19:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlos Eduardo Gallo Filho X-Patchwork-Id: 13319709 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 33DDDC0015E for ; Thu, 20 Jul 2023 02:22:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8D72110E392; Thu, 20 Jul 2023 02:22:31 +0000 (UTC) Received: from knopi.disroot.org (knopi.disroot.org [178.21.23.139]) by gabe.freedesktop.org (Postfix) with ESMTPS id D520310E392; Thu, 20 Jul 2023 02:22:28 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 49A9D40611; Thu, 20 Jul 2023 04:22:25 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WlCQlUoxq5bm; Thu, 20 Jul 2023 04:22:23 +0200 (CEST) From: Carlos Eduardo Gallo Filho DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1689819743; bh=Hju4rB2+gzToFMDKnORZjkmAt13WQqVlWgaxsEzHX14=; h=From:To:Cc:Subject:Date; b=W0GfdKN7CCU8meFHAkNsqscGRfgt0Qaz+Gqa9gJkjbRprZChYalIID17dzfLje6/1 gsrBB/ebkFCA47SyBwz+5a8s3BxXgAmSCGJshdWNS3Eg94Pb5ZG1W5I96vDU31GRkK DTzwiQsM1Zj9SGiWroaWP3f0wa6rzFdiUixuc+0nNzEPF74gw8i6dA5OyzBOtvoJzz ZaTfuDf1MXyBcHlZYjZnuku4kmKkX/CEz/niBsPJruUU7ob+jKQBKYN7v91CkdBakX 3Wb850flfKWMHUXxn5pxJjcO3GkjUoJB0zD1W/7U5IGpIvmdxPAjleCyhcnEaztLAo cOdFw/JgRkL+w== To: =?utf-8?q?Andr=C3=A9_Almeida?= , Maira Canal , Arthur Grillo , Tales Aparecida , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Juha-Pekka Heikkila , =?utf-8?b?VmlsbGUgU3ly?= =?utf-8?b?asOkbMOk?= , Matt Roper , Clint Taylor , Carlos Eduardo Gallo Filho , Niranjana Vishwanathapura Subject: [PATCH v2 0/2] drm: Refactor plane size calculation by core helper functions Date: Wed, 19 Jul 2023 23:19:35 -0300 Message-ID: <20230720021937.27124-1-gcarlos@disroot.org> MIME-Version: 1.0 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: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" There's duplicated functions on drm that do the same job of calculating the size of planes from a drm_format_info and the size of its first plane. So this patchset throw away the more specific version intended to be used from a given framebuffer and make the generic version way more portable against the drivers. Thanks, Carlos --- v1 -> v2: https://lore.kernel.org/dri-devel/20230627182239.15676-1-gcarlos@disroot.org/ - New patch "[PATCH v2 1/2] drm: Remove plane hsub/vsub alignment requirement for core helpers". --- Carlos Eduardo Gallo Filho (2): drm: Remove plane hsub/vsub alignment requirement for core helpers drm: Replace drm_framebuffer plane size functions with its equivalents drivers/gpu/drm/drm_framebuffer.c | 64 ++----------------------- drivers/gpu/drm/i915/display/intel_fb.c | 2 +- include/drm/drm_fourcc.h | 5 +- include/drm/drm_framebuffer.h | 5 -- 4 files changed, 8 insertions(+), 68 deletions(-)