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=-3.5 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,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 D3223C2BB40 for ; Fri, 11 Dec 2020 14:54:35 +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 89255246C4 for ; Fri, 11 Dec 2020 14:54:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 89255246C4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=emersion.fr Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id C636B6EE28; Fri, 11 Dec 2020 14:39:43 +0000 (UTC) Received: from mail1.protonmail.ch (mail1.protonmail.ch [185.70.40.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id A61626E8EE for ; Fri, 11 Dec 2020 14:39:42 +0000 (UTC) Date: Fri, 11 Dec 2020 14:39:35 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1607697580; bh=Newu9QDoujmKtx+yK37Z5goafDkQAw5SWPKAWnqoBgk=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=HaVNaAi+BSQX9+G1bKjEXZg3Vaqq4vntQSk8ZJw1PofvJ0/aG9RHp2/7SJOLEyyr0 WZN8kjk8U99bIS6FN7mHjMOiBRSnr7VNlF4fj9ciRA0gChm2+jnjgNnSNS9I87SHfm d2uHz9PJz23gfljQHwutkalGWYUx6MECws6AylksoSC8XP4g8MHD8WWL5ndvkjLlwF rDmOP/qIg0sYpWQQz3NPnJCjuAFyLAjEogZ9O/tgbAwdcq7GY8PRA/UL1tW3El1sNo 8NLVwhwZilKBMWlfqHOJBUU2gT1F5+miCvKO7hjNf/REC+Ix9gm5puAj91PpZsLq00 otEyXTI8cyfrA== To: Pekka Paalanen From: Simon Ser Subject: Re: [PATCH v3 4/4] drm: require each CRTC to have a unique primary plane Message-ID: In-Reply-To: <20201211155024.5ea63a88@eldfell> References: <20201211155024.5ea63a88@eldfell> MIME-Version: 1.0 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 Cc: dri-devel@lists.freedesktop.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" On Friday, December 11th, 2020 at 2:50 PM, Pekka Paalanen wrote: > is there a reason why one cannot have more primary planes than CRTCs in > existence? > > Daniel implied that in <20201209003637.GK401619@phenom.ffwll.local>, > but I didn't get the reason for it yet. > > E.g. if all your planes are interchangeable in the sense that you can > turn on a CRTC with any one of them, would one not then expose all the > planes as "Primary"? I'm thinking of primary as a hint for simple user-space: "you can likely light up a CRTC if you attach this plane and don't do anything crazy". For anything more complicated, user-space uses atomic commits and can completely ignore whether a plane is primary, cursor or overlay. > If the planes have other differences, like supported formats or > scaling, then marking them all "Primary" would let userspace know that > it can pick any plane with the suitable properties and expect to turn > on the CRTC with it. That's interesting, but I'd bet no user-space does that. If new user-space wants to, it's better to rely on test-only commits instead. > Or does marking a plane as "Primary" imply something else too, like > "cannot scale"? I think Weston does make this assumption in an attempt > to hit fewer causes for failure. No, AFAIK "Primary" doesn't imply something else, e.g. on amdgpu you can do scaling on the primary plane. _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel