Re: [PATCH weston 3/3] compositor: don't map surfaces without a buffer

2017-02-03 Thread Emilio Pozuelo Monfort
On 03/02/17 16:27, Derek Foreman wrote: > On 03/02/17 09:10 AM, Emilio Pozuelo Monfort wrote: >> We were calling weston_surface::committed on surfaces with >> no buffer attached. Stop doing that, since surface::committed >> will map the surfaces and put them in a visible layer. That may >> not be a

Re: [PATCH weston 3/3] compositor: don't map surfaces without a buffer

2017-02-03 Thread Derek Foreman
On 03/02/17 09:10 AM, Emilio Pozuelo Monfort wrote: We were calling weston_surface::committed on surfaces with no buffer attached. Stop doing that, since surface::committed will map the surfaces and put them in a visible layer. That may not be a problem for a single surface as it wouldn't be visi

[PATCH weston 3/3] compositor: don't map surfaces without a buffer

2017-02-03 Thread Emilio Pozuelo Monfort
We were calling weston_surface::committed on surfaces with no buffer attached. Stop doing that, since surface::committed will map the surfaces and put them in a visible layer. That may not be a problem for a single surface as it wouldn't be visible anyway because it's got no contents, but it is a p

[PATCH weston 2/3] shot: add test for sub-surface with unmapped parent

2017-02-03 Thread Emilio Pozuelo Monfort
This reproduces https://bugs.freedesktop.org/show_bug.cgi?id=94735. The test currently fails, so mark it as expected to fail. Signed-off-by: Emilio Pozuelo Monfort --- tests/reference/subsurface_mapped-00.png | Bin 0 -> 799 bytes tests/reference/subsurface_mapped-01.png | Bin 0 -> 841 bytes t

[PATCH weston 1/3] tests: add a create_test_surface function

2017-02-03 Thread Emilio Pozuelo Monfort
This doesn't attach a buffer to the surface. This is needed for the next commit, where we have a test case with a surface that doesn't have a buffer attached. Signed-off-by: Emilio Pozuelo Monfort --- tests/weston-test-client-helper.c | 29 - tests/weston-test-client-

Re: [PATCH wayland-protocols v3] linux-dmabuf: add immediate dmabuf import path

2017-02-03 Thread Pekka Paalanen
On Tue, 31 Jan 2017 18:41:52 +0530 Varad Gautam wrote: > From: Varad Gautam > > provide a mechanism that allows clients to import the added dmabufs > and immediately use the newly created wl_buffers without waiting on > an event. this is useful to clients that are sure of their import > request