Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3680126pxf; Mon, 29 Mar 2021 08:34:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyxzJTzvahHPAyEjPfnHzGmofbnYkocp3x8rYddPcu7TWTirPZaI2iaoenWoh5mHkamlB4j X-Received: by 2002:aa7:ca04:: with SMTP id y4mr28945812eds.339.1617032064415; Mon, 29 Mar 2021 08:34:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617032064; cv=none; d=google.com; s=arc-20160816; b=AQ7ZqU0JsMCuKAe2cUmKoE8P49pYh3BK1z+ze6WKaK5VOHneGBBhsq4mFzCOHD9oPW VxUIiJih4pMJxyedy7Cuk12QefyPU2CAGXBMzu62+8u1yz8zeCrLR3f9XZT0JNX5zYfv vcPjFOf9L1ggLxdowpjbv7B2ZyFCU8eAcCHITGo9IklzChFwxdtqH4SNnll2GzHRjtl2 P5DzOBNlhaV0U/pLpGZ2HZYguCu6VS9RfwZ1wcHUwzwYkUWXtH940n+hhNRIVTILGO8r otf4PJjUFI9ugSdO31L2wxNCKys1tpUhUYgqlF1h+p1V6hUzMmd/gKWcx39ozTkiPgKq m8dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:cc:to:subject:from:date; bh=ZR8q3C9Z7nz1FwxkqXM2wzebP5D0ynObIvgaziYTZTY=; b=A7VgbsQ9KA8MW3u6F0Bm469Z4WjO4nJPH2KfttLpVqvDd6MCGeLYqNF6jN85GMpntF 8+oQYVdPP54n2L/qaTxwm3Jyda8Wwj43pMtc5PFLLKKvgjUJdsyClWrp3xK/Mf7ra00E QKyjgbVenw2WeBwCDlcRCW2Y2SnSTdDy3yas1JXYDoZ9fyqJ0Z4ebc2oNeKifVdY2k8f VEQUTxgqvYWZ62pyJk47SPzVcCSQr1tKla5zWgrZg3Y/+ESr4sqhWr89wOcz1LcCmrp9 KzFHuzHSS2qBkzpXtu5i7aUwk6omZhFHZnb8vKrLCMlhfJwxioVLS2A4XdL8l9cEQALc eLIA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f26si13403931ejr.164.2021.03.29.08.34.01; Mon, 29 Mar 2021 08:34:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229674AbhC2PdG convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Mar 2021 11:33:06 -0400 Received: from aposti.net ([89.234.176.197]:56360 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230337AbhC2Pcc (ORCPT ); Mon, 29 Mar 2021 11:32:32 -0400 Date: Mon, 29 Mar 2021 16:32:17 +0100 From: Paul Cercueil Subject: Re: [PATCH] drm: DON'T require each CRTC to have a unique primary plane To: Simon Ser Cc: Maxime Ripard , Maarten Lankhorst , Thomas Zimmermann , David Airlie , Daniel Vetter , od@zcrc.me, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Message-Id: In-Reply-To: References: <20210327112214.10252-1-paul@crapouillou.net> <20210329140731.tvkfxic4fu47v3rz@gilmour> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Simon, Le lun. 29 mars 2021 ? 14:11, Simon Ser a ?crit : > On Monday, March 29th, 2021 at 4:07 PM, Maxime Ripard > wrote: > >> Since it looks like you have two mutually exclusive planes, just >> expose >> one and be done with it? > > You can expose the other as an overlay. Clever user-space will be able > to figure out that the more advanced plane can be used if the primary > plane is disabled. > > But yeah, I don't think exposing two primary planes makes sense. The > "primary" bit is just there for legacy user-space, it's a hint that > it's the best plane to light up for fullscreen content. It has no > other > significance than that, and in particular it doesn't mean that it's > incompatible with other primary planes. Yes, from what I understood when writing the driver, there is not much of a difference with primary vs. overlay planes when dealing with the atomic DRM API, which I used exclusively. Making the second plane an overlay would break the ABI, which is never something I'm happy to do; but I'd prefer to do it now than later. I still have concerns about the user-space being "clever" enough to know it can disable the primary plane. Can e.g. wlroots handle that? Cheers, -Paul