[PATCH] drm/uapi: document kernel capabilities
Simon Ser
contact at emersion.fr
Mon Mar 8 12:33:47 UTC 2021
On Monday, March 8th, 2021 at 9:20 AM, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> > > > +/**
> > > > + * DRM_CAP_CRTC_IN_VBLANK_EVENT
> > > > + *
> > > > + * If set to 1, the kernel supports reporting the CRTC ID in
> > > > + * &drm_event_vblank.crtc_id.
> > >
> > > Does this not apply also to the pageflip / atomic completion event?
> >
> > Both DRM_EVENT_VBLANK and DRM_EVENT_FLIP_COMPLETE use the struct
> > drm_event_vblank, so yes. I'll mention these two events explicitly.
>
> They do? Seems like I have been spoiled by the libdrm API that uses
> drmEventContext with different callbacks for these things.
Yeah, see drmHandleEvent [1] in libdrm.
[1]: https://gitlab.freedesktop.org/mesa/drm/-/blob/7d6a1759900ffde0a7aac2fa0cbd7c2bf4989476/xf86drmMode.c#L922
More information about the dri-devel
mailing list