race between (say) wl_display_sync and wl_callback_add_listener?

2023-09-25 Thread John Cox
Hi Assuming I have a separate poll/read_events/dispatch_queue thread to my main thread. If I go wl_display_sync/wl_callback_add_listener on the main thread is there a race condition between those two calls where the other thread can read & dispatch the callback before the listener is added or is

Re: Questions about object ID lifetimes

2023-09-25 Thread jleivent
On Wed, 20 Sep 2023 10:05:51 -0400 jleivent wrote: > .. > Here's a very wild suggestion that would eliminate it and still > be compatible with Wayland 1. Add a delete_id request without > modifying the existing protocol. I have a delete_id request hack, enhanced zombies everywhere, a LRU ring

Re: [PATCH RFC v6 09/10] drm/msm/dpu: Use DRM solid_fill property

2023-09-25 Thread Dmitry Baryshkov
On Tue, 29 Aug 2023 at 03:06, Jessica Zhang wrote: > > Drop DPU_PLANE_COLOR_FILL_FLAG and check the DRM solid_fill property to > determine if the plane is solid fill. In addition drop the DPU plane > color_fill field as we can now use drm_plane_state.solid_fill instead, > and pass in

Re: wl_surface::attach(NULL) release previous buffer?

2023-09-25 Thread Pekka Paalanen
On Fri, 22 Sep 2023 15:47:13 +0100 John Cox wrote: > Hi > > >On 9/14/23 14:24, John Cox wrote: > > > >> Hi > >> > >> A, hopefully, simple question - should I expect a wl_buffer::release > >> event from the buffer previously committed to a surface after I've > >> attached (and invalidated &