On Wed, 12 Feb 2020 11:07:56 +0000
Carsten Haitzler <[email protected]> wrote:

> On Wed, 12 Feb 2020 12:40:15 +0200 Pekka Paalanen <[email protected]> said:
> 
> > On Wed, 12 Feb 2020 10:21:02 +0000
> > Carsten Haitzler (The Rasterman) <[email protected]> wrote:
> >   
> > > even better - if the /dev/dri/card0
> > > device exists, dlopen libdrm and get some symbols from it and ... use it 
> > > to
> > > request the drm device sent you vsync events so you can use the vsync
> > > interrupt as your frame event. this will be another fd to listen on in
> > > select() and of course you can turn this vblank event stream on and off.  
> > 
> > Please don't. Talk to the X server instead.  
> 
> and what vsync events does the xserver provide? 

You don't want vsync events. You have no idea what they
correspond to, or even if you opened the right device.

https://gitlab.freedesktop.org/xorg/proto/xorgproto/blob/master/presentproto.txt


Thanks,
pq

Attachment: pgp9r7CRzD5Ti.pgp
Description: OpenPGP digital signature

_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to