Re: [PATCH weston] compositor: automatically set opaque region for color formats

2012-09-06 Thread Pekka Paalanen
On Thu, 6 Sep 2012 11:10:39 -0400 Kristian Høgsberg wrote: > On Wed, Sep 05, 2012 at 09:36:59AM +0300, Pekka Paalanen wrote: > > Some color formats are naturally opaque: RGB, XRGB, YUV formats without > > A channel. For these, automatically set the opaque region to whole > > surface. > > > > Not

Re: [PATCH weston] compositor: automatically set opaque region for color formats

2012-09-06 Thread Kristian Høgsberg
On Wed, Sep 05, 2012 at 09:36:59AM +0300, Pekka Paalanen wrote: > Some color formats are naturally opaque: RGB, XRGB, YUV formats without > A channel. For these, automatically set the opaque region to whole > surface. > > Note: > If a client first sends a buffer with opaque color format, and then

Re: [PATCH weston] compositor: automatically set opaque region for color formats

2012-09-05 Thread Bill Spitzak
Daniel Stone wrote: On 5 September 2012 20:49, Bill Spitzak wrote: Doesn't the compositor have access to what type the surfaces are? It can then know the surface is opaque and ignore the opaque region there. Then if the client changes back to a non-opaque surface the opaque region is unchange

Re: [PATCH weston] compositor: automatically set opaque region for color formats

2012-09-05 Thread Daniel Stone
On 5 September 2012 20:49, Bill Spitzak wrote: > Doesn't the compositor have access to what type the surfaces are? It can > then know the surface is opaque and ignore the opaque region there. Then if > the client changes back to a non-opaque surface the opaque region is > unchanged and starts bein

Re: [PATCH weston] compositor: automatically set opaque region for color formats

2012-09-05 Thread Bill Spitzak
Doesn't the compositor have access to what type the surfaces are? It can then know the surface is opaque and ignore the opaque region there. Then if the client changes back to a non-opaque surface the opaque region is unchanged and starts being used again. I would expect this to be slightly mo

[PATCH weston] compositor: automatically set opaque region for color formats

2012-09-04 Thread Pekka Paalanen
Some color formats are naturally opaque: RGB, XRGB, YUV formats without A channel. For these, automatically set the opaque region to whole surface. Note: If a client first sends a buffer with opaque color format, and then sends another buffer of the same size but with non-opaque color format, the