From patchwork Thu Jun 15 23:28:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eric Anholt X-Patchwork-Id: 9790395 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B7FFC602CB for ; Thu, 15 Jun 2017 23:28:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AA97E284ED for ; Thu, 15 Jun 2017 23:28:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F611284F1; Thu, 15 Jun 2017 23:28:40 +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=-4.2 required=2.0 tests=BAYES_00, 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 414612852E for ; Thu, 15 Jun 2017 23:28:39 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 173F46E835; Thu, 15 Jun 2017 23:28:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from anholt.net (anholt.net [50.246.234.109]) by gabe.freedesktop.org (Postfix) with ESMTP id 08F2F6E835; Thu, 15 Jun 2017 23:28:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 6437310A1DB1; Thu, 15 Jun 2017 16:28:34 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at anholt.net Received: from anholt.net ([127.0.0.1]) by localhost (kingsolver.anholt.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 6koMQx9DT138; Thu, 15 Jun 2017 16:28:33 -0700 (PDT) Received: from eliezer.anholt.net (localhost [127.0.0.1]) by anholt.net (Postfix) with ESMTP id 321D110A01DC; Thu, 15 Jun 2017 16:28:33 -0700 (PDT) Received: by eliezer.anholt.net (Postfix, from userid 1000) id AFEDC2E73F7; Thu, 15 Jun 2017 16:28:32 -0700 (PDT) From: Eric Anholt To: dri-devel@lists.freedesktop.org, Gustavo Padovan Subject: [PATCH v2 6/6 squash] drm/vc4: Fixup for the drm core async changes. Date: Thu, 15 Jun 2017 16:28:32 -0700 Message-Id: <20170615232832.22435-1-eric@anholt.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170615023305.17410-7-gustavo@padovan.org> References: <20170615023305.17410-7-gustavo@padovan.org> Cc: intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP With this squashed in, the vc4 patch is: Reviewed-by: Eric Anholt Signed-off-by: Eric Anholt --- Without this, the cursor never moved :) drivers/gpu/drm/vc4/vc4_plane.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/vc4/vc4_plane.c b/drivers/gpu/drm/vc4/vc4_plane.c index aac3a31a9260..59f7ab6b1831 100644 --- a/drivers/gpu/drm/vc4/vc4_plane.c +++ b/drivers/gpu/drm/vc4/vc4_plane.c @@ -792,6 +792,9 @@ static void vc4_plane_atomic_async_update(struct drm_plane *plane, if (plane->state->fb != new_state->fb) vc4_plane_async_set_fb(plane, new_state->fb); + /* Update the display list based on the new crtc_x/y. */ + vc4_plane_atomic_check(plane, plane->state); + /* Note that we can't just call vc4_plane_write_dlist() * because that would smash the context data that the HVS is * currently using.