Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3521391pxf; Mon, 29 Mar 2021 04:44:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsbRBRDhuYU943U+DbScwYPg4h0FM+CFw/SOjnxCpPmvbfGq6SPUaHYiysQxY9c6/iC6/0 X-Received: by 2002:a17:906:7e12:: with SMTP id e18mr29118929ejr.316.1617018294679; Mon, 29 Mar 2021 04:44:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617018294; cv=none; d=google.com; s=arc-20160816; b=xvU7+6gg0zPJBSf75YdDFbamEJTFezmWi/BavrHYv9Aj434gOxAz820NVDJcHvnFTY 2M1q5GxycqOyMTJV973yfs1z32KP8yseiz5ke9sxNNTgHdTdyB9rOGNd7J5kRO7cQBTt s+f0MfvJYhA8h3b7IsB9VRpujdLkq9VpYfTr1v/2WJU8UlogmtIoeTbIDSXm6E25hCO0 sGlET0bDISwH/eOARFOcUwvK3jB7xx7+bytu0u/PmRH6mw4AnfV0RBvLAYXxAtspcMe4 YvcNAHbT2fhfpx8a1hrCzS6kAxhvJ3Cox14ZPjKb824sWnBNB54hFjEgmZkGpkpliK7p poDA== 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=+MEfQcUIHYLle5KrwPcawg5Et6X3BZdPjt+ojIwWhFw=; b=0ceT2RvcX5BIZLEcXZLM9hSHAXIA4TT/clSRw+YpxjXI4EatgowcatV4uW9a506tYj hQOKNlnXI7vmzIFA5YL4cUtd946vMvSf+jp/3AvXjLP2qm+OtVgnWTBwJ/u0HD1RcZQV yLVjteipk0ROZgWwOpe6QWRm75euLKSM4dbqHt7ahcyQ27s5MvaRjoi3/krtoO7Qd/pI Cu2qICbIwJIBATR8ZsaeYxx+ZQnkLBLEfhZFM1t6d7PZzlOe0H3WmUcxVeiQg9AE0Cw3 zf489dc0IBfJgLpXOobDGeSPw5tokIY59Itlj1gLUhz0nP0wplFBpWxi1k+Phj8PtTKN YeXg== 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 k12si12840165edq.82.2021.03.29.04.44.32; Mon, 29 Mar 2021 04:44:54 -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 S231187AbhC2Llh convert rfc822-to-8bit (ORCPT + 99 others); Mon, 29 Mar 2021 07:41:37 -0400 Received: from aposti.net ([89.234.176.197]:39248 "EHLO aposti.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230180AbhC2LlW (ORCPT ); Mon, 29 Mar 2021 07:41:22 -0400 Date: Mon, 29 Mar 2021 12:41:00 +0100 From: Paul Cercueil Subject: Re: [PATCH] drm: DON'T require each CRTC to have a unique primary plane To: Pekka Paalanen Cc: Simon Ser , Thomas Zimmermann , David Airlie , linux-kernel@vger.kernel.org, od@zcrc.me, dri-devel@lists.freedesktop.org, stable@vger.kernel.org Message-Id: In-Reply-To: <20210329111533.47e44f72@eldfell> References: <20210327112214.10252-1-paul@crapouillou.net> <1J_tcDPSAZW23jPO8ApyzgINcVRRWcNyFP0LvrSFVIMbZB9lH6lCWvh2ByU9rNt6bj6xpgRgv8n0hBKhXAvXNfLBGfTIsvbhYuHW3IIDd7Y=@emersion.fr> <24LMQQ.CRNKYEI6GB2T1@crapouillou.net> <20210329111533.47e44f72@eldfell> 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, Le lun. 29 mars 2021 ? 11:15, Pekka Paalanen a ?crit : > On Sat, 27 Mar 2021 11:26:26 +0000 > Paul Cercueil wrote: > >> It has two mutually exclusive background planes (same Z level) + one >> overlay plane. > > What's the difference between the two background planes? > > How will generic userspace know to pick the "right" one? First primary plane cannot scale, supports RGB and C8. Second primary plane goes through the IPU, and as such can scale and convert pixel formats; it supports RGB, non-planar YUV, and multi-planar YUV. Right now the userspace apps we have will simply pick the first one that fits the bill. Cheers, -Paul >> Le sam. 27 mars 2021 ? 11:24, Simon Ser a >> ?crit >> : >> > On Saturday, March 27th, 2021 at 12:22 PM, Paul Cercueil >> > wrote: >> > >> >> The ingenic-drm driver has two mutually exclusive primary planes >> >> already; so the fact that a CRTC must have one and only one >> primary >> >> plane is an invalid assumption. >> > >> > Why does this driver expose two primary planes, if it only has a >> > single >> > CRTC? >> >> >> _______________________________________________ >> dri-devel mailing list >> dri-devel@lists.freedesktop.org >> https://lists.freedesktop.org/mailman/listinfo/dri-devel >