On Wed, 22 Feb 2006, Barry Scott wrote:
> Mark Vojkovich wrote:
> > The only mechanism I know of is OpenGL. Most OpenGL drivers have
> > a mechanism to allow buffer swapping at vblank.
> >
> Using DRM/DRI this works:
>
> void waitForVSync()
> {
> if( card_fd < 0 )
> card_fd = open( "/dev/dri/ca
Mark Vojkovich wrote:
The only mechanism I know of is OpenGL. Most OpenGL drivers have
a mechanism to allow buffer swapping at vblank.
Using DRM/DRI this works:
void waitForVSync()
{
if( card_fd < 0 )
card_fd = open( "/dev/dri/card0", O_RDONLY );
drm_wait_vblank_t wait_vblank;
wait_vblan