How to design a DRM KMS driver exposing 2D compositing?

2014-08-13 Thread Pekka Paalanen
On Tue, 12 Aug 2014 09:10:47 -0700 Eric Anholt wrote: > Pekka Paalanen writes: > > > On Mon, 11 Aug 2014 19:27:45 +0200 > > Daniel Vetter wrote: > > > >> On Mon, Aug 11, 2014 at 10:16:24AM -0700, Eric Anholt wrote: > >> > Daniel Vetter writes: > >> > > >> > > On Mon, Aug 11, 2014 at

How to design a DRM KMS driver exposing 2D compositing?

2014-08-12 Thread Ville Syrjälä
On Tue, Aug 12, 2014 at 10:03:26AM +0200, Daniel Vetter wrote: > On Tue, Aug 12, 2014 at 9:20 AM, Pekka Paalanen > wrote: > >> but I tend to think it would be nice for compositors (userspace) to > >> know explicitly what is going on.. ie. if some layers are blended via > >> intermediate buffer,

How to design a DRM KMS driver exposing 2D compositing?

2014-08-12 Thread Pekka Paalanen
On Mon, 11 Aug 2014 19:27:45 +0200 Daniel Vetter wrote: > On Mon, Aug 11, 2014 at 10:16:24AM -0700, Eric Anholt wrote: > > Daniel Vetter writes: > > > > > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > > >> Hi, > > >> > > >> there is some hardware than can do 2D compositing

How to design a DRM KMS driver exposing 2D compositing?

2014-08-12 Thread Pekka Paalanen
On Mon, 11 Aug 2014 07:37:18 -0700 Matt Roper wrote: > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > > 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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-12 Thread Pekka Paalanen
On Mon, 11 Aug 2014 09:32:32 -0400 Rob Clark wrote: > On Mon, Aug 11, 2014 at 8:06 AM, Daniel Vetter wrote: > > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > >> What if I cannot even pick a maximum number of planes, but wanted to > >> (as the hardware allows) let the 2D

How to design a DRM KMS driver exposing 2D compositing?

2014-08-12 Thread Pekka Paalanen
On Mon, 11 Aug 2014 17:35:31 +0200 Daniel Vetter wrote: > Well for other drivers/stacks we'd fall back to GL compositing. pixman > would obviously be terribly. Curious question: Can you provoke the > hw/firmware to render into abitrary buffers or does it only work together > with real display

How to design a DRM KMS driver exposing 2D compositing?

2014-08-12 Thread Daniel Vetter
On Tue, Aug 12, 2014 at 9:20 AM, Pekka Paalanen wrote: >> but I tend to think it would be nice for compositors (userspace) to >> know explicitly what is going on.. ie. if some layers are blended via >> intermediate buffer, couldn't that intermediate buffer be potentially >> re-used on next frame

How to design a DRM KMS driver exposing 2D compositing?

2014-08-12 Thread Eric Anholt
Pekka Paalanen writes: > On Mon, 11 Aug 2014 19:27:45 +0200 > Daniel Vetter wrote: > >> On Mon, Aug 11, 2014 at 10:16:24AM -0700, Eric Anholt wrote: >> > Daniel Vetter writes: >> > >> > > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: >> > >> Hi, >> > >> >> > >> there is

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Daniel Vetter
On Mon, Aug 11, 2014 at 10:16:24AM -0700, Eric Anholt wrote: > Daniel Vetter writes: > > > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > >> Hi, > >> > >> there is some hardware than can do 2D compositing with an arbitrary > >> number of planes. I'm not sure what the absolute

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Daniel Vetter
On Mon, Aug 11, 2014 at 07:09:11PM +0300, Ville Syrj?l? wrote: > On Mon, Aug 11, 2014 at 05:35:31PM +0200, Daniel Vetter wrote: > > On Mon, Aug 11, 2014 at 03:47:22PM +0300, Pekka Paalanen wrote: > > > > > What if I cannot even pick a maximum number of planes, but wanted to > > > > > (as the

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Ville Syrjälä
On Mon, Aug 11, 2014 at 05:35:31PM +0200, Daniel Vetter wrote: > On Mon, Aug 11, 2014 at 03:47:22PM +0300, Pekka Paalanen wrote: > > > > What if I cannot even pick a maximum number of planes, but wanted to > > > > (as the hardware allows) let the 2D compositing scale up basically > > > > unlimited

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Daniel Vetter
On Mon, Aug 11, 2014 at 03:47:22PM +0300, Pekka Paalanen wrote: > > > What if I cannot even pick a maximum number of planes, but wanted to > > > (as the hardware allows) let the 2D compositing scale up basically > > > unlimited while becoming just slower and slower? > > > > > > I think at that

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Daniel Vetter
On Mon, Aug 11, 2014 at 09:32:32AM -0400, Rob Clark wrote: > On Mon, Aug 11, 2014 at 8:06 AM, Daniel Vetter wrote: > > Personally I'd expose a bunch of planes with kms (enough so that you can > > reap the usual benefits planes bring wrt video-playback and stuff like > > that). So perhaps

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Pekka Paalanen
On Mon, 11 Aug 2014 14:14:56 +0100 Damien Lespiau wrote: > On Mon, Aug 11, 2014 at 03:07:33PM +0300, Pekka Paalanen wrote: > > > > 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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Pekka Paalanen
Hi Daniel, you make perfect sense as usual. :-) Comments below. On Mon, 11 Aug 2014 14:06:36 +0200 Daniel Vetter wrote: > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > > Hi, > > > > there is some hardware than can do 2D compositing with an arbitrary > > number of planes.

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Pekka Paalanen
On Mon, 11 Aug 2014 11:57:10 +0100 Damien Lespiau wrote: > 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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Damien Lespiau
On Mon, Aug 11, 2014 at 03:07:33PM +0300, Pekka Paalanen wrote: > > > 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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Daniel Vetter
On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > 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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Pekka Paalanen
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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Damien Lespiau
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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Eric Anholt
Daniel Vetter writes: > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: >> 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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Rob Clark
On Mon, Aug 11, 2014 at 8:06 AM, Daniel Vetter wrote: > On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: >> 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

How to design a DRM KMS driver exposing 2D compositing?

2014-08-11 Thread Matt Roper
On Mon, Aug 11, 2014 at 01:38:55PM +0300, Pekka Paalanen wrote: > 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