From: Damien Lespiau Subject: Re: How to design a DRM KMS driver exposing 2D compositing? Date: Mon, 11 Aug 2014 11:57:10 +0100 Message-ID: <20140811105710.GB21988@strange.ger.corp.intel.com> References: <20140811133855.77ab3f93@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by gabe.freedesktop.org (Postfix) with ESMTP id 59BB36E3B5 for ; Mon, 11 Aug 2014 03:57:12 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140811133855.77ab3f93@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Pekka Paalanen Cc: dri-devel List-Id: dri-devel@lists.freedesktop.org On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > Hi, Hi, > there is some hardware than can do 2D compositing with an arbitrary > number of planes. I'm not sure what the absolute maximum number of > planes is, but for the discussion, let's say it is 100. > > There are many complicated, dynamic constraints on how many, what size, > etc. planes can be used at once. A driver would be able to check those > before kicking the 2D compositing engine. > > The 2D compositing engine in the best case (only few planes used) is > able to composite on the fly in scanout, just like the usual overlay > hardware blocks in CRTCs. When the composition complexity goes up, the > driver can fall back to compositing into a buffer rather than on the > fly in scanout. This fallback needs to be completely transparent to the > user space, implying only additional latency if anything. This looks like a fallback that would use GL to compose the intermediate buffer. Any reason why that fallback can't be kicked from userspace? -- Damien