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,URIBL_BLOCKED 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 3D394C4338F for ; Wed, 11 Aug 2021 10:21:51 +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 EC4A9601FF for ; Wed, 11 Aug 2021 10:21:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org EC4A9601FF 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 BF2CA89760; Wed, 11 Aug 2021 10:21:49 +0000 (UTC) Received: from mail-40136.protonmail.ch (mail-40136.protonmail.ch [185.70.40.136]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7A852891CC for ; Wed, 11 Aug 2021 10:21:47 +0000 (UTC) Date: Wed, 11 Aug 2021 10:21:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail; t=1628677304; bh=bDk/wMqwMCPs55BFKu9MMkPMlAs8hEprV+MTnJ3E6w8=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=JWX8fT9mXOA2s8/SlX7kNNAPfmpsbbt+cN1IRJmg6+b+6Fz1XyPEpR7/78cgkw/Zd j0q84kycARWwiy+T8sGwqDM8nD7O0I4mDXUOHabvOFYUuimnhDM6aBEjJni2MD0S+b gtajsgKG9hVnkWWcOFyK6IyuvlRozW0PRU9HG9gjyHLlMxnI0yEC29ocyAXg2BIGk+ 22qd4zVxpQBS5Y5JkUMIA/KrMk/Az9fWXJ+aqTK/vZGxyC6BsXKv0s4WPdxcu7MnU9 fibuSmPBM+R36bBVmu6Z6j9AbmIBgQz6J9r3ScYKESEQsQxEshUvh9ZGdugWtWVLEU 3MUUmkUfrECxg== To: Daniel Vetter From: Simon Ser Cc: John Cox , dri-devel@lists.freedesktop.org Subject: Re: How to obtain a drm lease from X for overlay planes as well as a primary plane? Message-ID: In-Reply-To: References: <34a5hg1rb804h8d1471apktsgl5v9n9u1e@4ax.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: , Reply-To: Simon Ser Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Wednesday, August 11th, 2021 at 11:43, Daniel Vetter w= rote: > For wayland this is still in the works, so might be good if you check > there that your use-case is properly supported. Protocol MR is here: > > https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests= /67 The client requests a connector, and the compositor will decide which resources to lease. This may or may not include overlay planes. The connector you're interested in may or may not be available for lease. What's your use-case? Why not use an xdg_toplevel and wl_subsurface? DRM leases are not a good idea for regular applications. They don't properly integrate with the rest of the desktop, and won't get input events. Letting the compositor deal with KMS planes is the preferred approach.