From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D7AD0C432BE for ; Fri, 27 Aug 2021 14:12:58 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 9015260F44 for ; Fri, 27 Aug 2021 14:12:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9015260F44 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3F19589F2A; Fri, 27 Aug 2021 14:12:58 +0000 (UTC) Received: from mail-4322.protonmail.ch (mail-4322.protonmail.ch [185.70.43.22]) by gabe.freedesktop.org (Postfix) with ESMTPS id E617D89F2A for ; Fri, 27 Aug 2021 14:12:55 +0000 (UTC) Date: Fri, 27 Aug 2021 14:12:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1630073573; bh=8Ls93cNCjrkdeJMDBZAgSWQK6+Ar2qSHrZ3tRbRzvxs=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=Y4MQW70xgCUDTJEQZMx+arERONlktyrzh3Gcmw6/EAfiXvsvS2sf/UhWMgt5L15ib kxQk3rcX4Dt2NH9dz+RXjPm5up/A4hYGqh2PXcd6AaQ4039Ti4PmZ3F/jhn7YZ8dk/ YJcPCJs3+RgjWOtkAPDhIyrVg/bUlq8/nhG3W7hBGWvr8kELc6Tgoaw8zcneZqXqEU pWf4w9N71LDLQVy8LD5esS5li8kyJAfwczEVygjr25N9WHX5tHiGaTzEvlCH1rolSV KbzB41pixeCA8IFL9zck1bLw31cQTZ+OCnW6B2muPUi+Te5svgHX5CuKz+5AP0Dwww YNJLKuMacKxFw== To: Harry Wentland From: Simon Ser Cc: "Kazlauskas, Nicholas" , Rodrigo Siqueira , amd-gfx@lists.freedesktop.org, Sean Paul , Hersen Wu , Louis Li Subject: Re: [PATCH v2] drm/amd/display: Fix two cursor duplication when using overlay Message-ID: <3qY-QeukF_Q_MJeIXAuBjO4szbS4jRtqkTifXnbnN3bp88SxVodFQRpah3mIIVJq24DUkF6g0rOGdCmSqTvVxx9LCGEItmzLw8uWU44jtXE=@emersion.fr> In-Reply-To: <92c13bba-b86b-b943-5433-b2b822283774@amd.com> References: <20210414000604.3273048-1-Rodrigo.Siqueira@amd.com> <20210818131824.avczlw6ie3tfs76j@outlook.office365.com> <7a1d1909-cead-16ef-7b22-b2adc0cf3ee2@amd.com> <92c13bba-b86b-b943-5433-b2b822283774@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: amd-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion list for AMD gfx List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Simon Ser Errors-To: amd-gfx-bounces@lists.freedesktop.org Sender: "amd-gfx" On Friday, August 27th, 2021 at 16:04, Harry Wentland wrote: > > Is it possible to draw the cursor only on the overlay pipe (not on the = primary > > pipe), even though the overlay pipe doesn't cover the whole CRTC? > > > > Or will the overlay pipe crop the cursor image? > > > > It will be cropped to the overlay rectangle. > > If you can allocate your overlay such that its destination rectangle > always spans the entire CRTC you'd have no cursor issues. Unfortunately > that means that you would use more memory bandwidth since you're > scanning out an overlay that's larger than you really need. Hm, yeah, unfortunately the buffers come from an X11 client, so it's exactly the size of the visible area, I can't easily draw transparent areas around it. Thanks for all of the details, I'll think about all of this for a while and try to come up with a plan.