Change-Id: I92150ed8b26d737330ac79e335c88aabb323372e
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
{
drmVBlank vbl;
- if (pipe > 0)
- vbl.request.type |= DRM_VBLANK_SECONDARY;
-
if (sync) {
vbl.request.type = DRM_VBLANK_RELATIVE;
vbl.request.sequence = 1;
vbl.request.signal = (unsigned long) (uintptr_t) data;
}
+ if (pipe > 0)
+ vbl.request.type |= DRM_VBLANK_SECONDARY;
+
if (_localdrmWaitVBlank(fd, &vbl)) {
*target_msc = 0;
TDM_ERR("wait vblank failed: %m");