Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275264
b: refs/heads/master
c: a6778e9
h: refs/heads/master
v: v3
  • Loading branch information
Ilija Hadzic authored and Dave Airlie committed Nov 11, 2011
1 parent 49eafea commit 3437670
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bfba16582600ab2c75dc39250a2b8f3b2a42da11
refs/heads/master: a6778e9e7fb57603f15344ceb30098a3f6b7caf4
7 changes: 6 additions & 1 deletion trunk/drivers/gpu/drm/drm_irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,6 +1125,7 @@ static int drm_queue_vblank_event(struct drm_device *dev, int pipe,
trace_drm_vblank_event_delivered(current->pid, pipe,
vblwait->request.sequence);
} else {
/* drm_handle_vblank_events will call drm_vblank_put */
list_add_tail(&e->base.link, &dev->vblank_event_list);
vblwait->reply.sequence = vblwait->request.sequence;
}
Expand Down Expand Up @@ -1205,8 +1206,12 @@ int drm_wait_vblank(struct drm_device *dev, void *data,
goto done;
}

if (flags & _DRM_VBLANK_EVENT)
if (flags & _DRM_VBLANK_EVENT) {
/* must hold on to the vblank ref until the event fires
* drm_vblank_put will be called asynchronously
*/
return drm_queue_vblank_event(dev, crtc, vblwait, file_priv);
}

if ((flags & _DRM_VBLANK_NEXTONMISS) &&
(seq - vblwait->request.sequence) <= (1<<23)) {
Expand Down

0 comments on commit 3437670

Please sign in to comment.