From patchwork Thu Nov 15 10:37:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Boris Brezillon X-Patchwork-Id: 10684095 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 207DF109C for ; Thu, 15 Nov 2018 10:37:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 07E322C175 for ; Thu, 15 Nov 2018 10:37:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F03862C454; Thu, 15 Nov 2018 10:37:45 +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 B76462C175 for ; Thu, 15 Nov 2018 10:37:45 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7EFF76E038; Thu, 15 Nov 2018 10:37:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.bootlin.com (mail.bootlin.com [62.4.15.54]) by gabe.freedesktop.org (Postfix) with ESMTP id 395ED6E038 for ; Thu, 15 Nov 2018 10:37:40 +0000 (UTC) Received: by mail.bootlin.com (Postfix, from userid 110) id 18AFE20D75; Thu, 15 Nov 2018 11:37:39 +0100 (CET) Received: from localhost.localdomain (aaubervilliers-681-1-13-146.w90-88.abo.wanadoo.fr [90.88.134.146]) by mail.bootlin.com (Postfix) with ESMTPSA id 4839C20893; Thu, 15 Nov 2018 11:37:23 +0100 (CET) From: Boris Brezillon To: Eric Anholt Subject: [PATCH 0/6] drm/vc4: Allow scaling on cursor planes Date: Thu, 15 Nov 2018 11:37:15 +0100 Message-Id: <20181115103721.25601-1-boris.brezillon@bootlin.com> X-Mailer: git-send-email 2.17.1 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: Boris Brezillon , dri-devel@lists.freedesktop.org MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP Hello, A few months back I tried to add support for the underscan props to the VC4 driver [1] and this lead to the conclusion that, if we want to use the HW scaler to implement underscan we should scale all planes by the same factor, including the cursor plane which currently does not support scaling. This series addresses this limitation by allowing a cursor plane to be scaled. When the scaling factors stay the same, async updates can take place, when they change, the driver will fallback to sync updates. I will submit a new version of the underscan patchset as soon as this rework is accepted/merged. Regards, Boris [1]https://patchwork.kernel.org/patch/10394563/ Boris Brezillon (6): drm/vc4: Make vc4_lbm_size() return 0 when vertical scaling is disabled drm/vc4: Move LBM creation out of vc4_plane_mode_set() drm/vc4: Don't check plane state more than once drm/vc4: Rework the async update logic drm/vc4: Allow scaling on cursor plane drm/vc4: Allow YUV formats on cursor planes drivers/gpu/drm/vc4/vc4_drv.h | 6 + drivers/gpu/drm/vc4/vc4_plane.c | 223 ++++++++++++++++++++------------ 2 files changed, 148 insertions(+), 81 deletions(-)