vblank: ignore global fps for server's vblank 65/171065/2
authorBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 07:23:48 +0000 (16:23 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 26 Feb 2018 23:50:59 +0000 (08:50 +0900)
Change-Id: I4188bd1e539792f3a2fbb6547d39276581175896

src/tdm_vblank.c

index 6db4ac7..dddb423 100644 (file)
@@ -1542,7 +1542,8 @@ tdm_vblank_wait(tdm_vblank *vblank, unsigned int req_sec, unsigned int req_usec,
        wait_info->user_data = user_data;
        wait_info->private_vblank = private_vblank;
 
-       if (private_vblank->ignore_global_fps ||
+       if (!private_vblank->resource ||
+               private_vblank->ignore_global_fps ||
                vblank_global_fps == 0 ||
                private_vblank->fps < vblank_global_fps)
                fps = private_vblank->fps;