Re: [RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-12 Thread Christian König
Am 12.10.22 um 12:25 schrieb Simon Ser: On Tuesday, October 11th, 2022 at 14:10, Christian König wrote: Am 10.10.22 um 11:13 schrieb Simon Ser: On Sunday, October 9th, 2022 at 20:00, Christian König wrote: Am 09.10.22 um 16:40 schrieb Simon Ser: Introduce a new DRM_IOCTL_SYNCOBJ_TIMELI

Re: [RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-12 Thread Simon Ser
On Tuesday, October 11th, 2022 at 14:10, Christian König wrote: > Am 10.10.22 um 11:13 schrieb Simon Ser: > > On Sunday, October 9th, 2022 at 20:00, Christian König > > wrote: > > > >> Am 09.10.22 um 16:40 schrieb Simon Ser: > >> > >>> Introduce a new DRM_IOCTL_SYNCOBJ_TIMELINE_REGISTER_EVENTF

Re: [RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-11 Thread Christian König
Am 10.10.22 um 11:13 schrieb Simon Ser: On Sunday, October 9th, 2022 at 20:00, Christian König wrote: Am 09.10.22 um 16:40 schrieb Simon Ser: Introduce a new DRM_IOCTL_SYNCOBJ_TIMELINE_REGISTER_EVENTFD IOCTL which signals an eventfd when a timeline point completes. I was entertaining the s

Re: [RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-10 Thread Simon Ser
On Monday, October 10th, 2022 at 10:19, Pekka Paalanen wrote: > I'm completely clueless about this API. No worries! > > +/** > > + * struct drm_syncobj_timeline_register_eventfd > > + * > > + * Register an eventfd to be signalled when a timeline point completes. The > > + * eventfd counter wil

Re: [RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-10 Thread Simon Ser
On Sunday, October 9th, 2022 at 20:00, Christian König wrote: > Am 09.10.22 um 16:40 schrieb Simon Ser: > > > Introduce a new DRM_IOCTL_SYNCOBJ_TIMELINE_REGISTER_EVENTFD IOCTL > > which signals an eventfd when a timeline point completes. > > I was entertaining the same though for quite a while

Re: [RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-10 Thread Pekka Paalanen
On Sun, 09 Oct 2022 14:40:14 + Simon Ser wrote: > Introduce a new DRM_IOCTL_SYNCOBJ_TIMELINE_REGISTER_EVENTFD IOCTL > which signals an eventfd when a timeline point completes. > > This is useful for Wayland compositors to handle wait-before-submit. > Wayland clients can send a timeline point

Re: [RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-09 Thread Christian König
Am 09.10.22 um 16:40 schrieb Simon Ser: Introduce a new DRM_IOCTL_SYNCOBJ_TIMELINE_REGISTER_EVENTFD IOCTL which signals an eventfd when a timeline point completes. I was entertaining the same though for quite a while, but I would even go a step further and actually always base the wait before

[RFC PATCH] drm/syncobj: add IOCTL to register an eventfd for a timeline

2022-10-09 Thread Simon Ser
Introduce a new DRM_IOCTL_SYNCOBJ_TIMELINE_REGISTER_EVENTFD IOCTL which signals an eventfd when a timeline point completes. This is useful for Wayland compositors to handle wait-before-submit. Wayland clients can send a timeline point to the compositor before the point has materialized yet, then c