flip before vsync
authornotaz <notasas@gmail.com>
Sat, 10 Mar 2012 22:59:35 +0000 (00:59 +0200)
committernotaz <notasas@gmail.com>
Sat, 10 Mar 2012 22:59:35 +0000 (00:59 +0200)
should be better, in theory at least, as registers are latched
on VFP, before VSYNC irq.

src/video/omapdss/osdl_video.c

index fc5e667..d1deaa9 100644 (file)
@@ -370,13 +370,17 @@ void *osdl_video_set_mode(struct SDL_PrivateVideoData *pdata,
 
 void *osdl_video_flip(struct SDL_PrivateVideoData *pdata)
 {
+       void *ret;
+
        if (pdata->fbdev == NULL)
                return NULL;
 
+       ret = vout_fbdev_flip(pdata->fbdev);
+
        if (pdata->cfg_force_vsync)
                vout_fbdev_wait_vsync(pdata->fbdev);
 
-       return vout_fbdev_flip(pdata->fbdev);
+       return ret;
 }
 
 void osdl_video_finish(struct SDL_PrivateVideoData *pdata)