Skip to content

Commit

Permalink
drm: use page flip event to signal flip completion
Browse files Browse the repository at this point in the history
We don't actually know which frame number the flip will complete on, so
userspace needs a specific flip notification to tell it when the last flip
completed.

Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Kristian Høgsberg <krh@bitplanet.net>
  • Loading branch information
Jesse Barnes authored and Eric Anholt committed Dec 1, 2009
1 parent 6b95a20 commit 7bd4d7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/drm_crtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2527,7 +2527,7 @@ int drm_mode_page_flip_ioctl(struct drm_device *dev,
goto out;
}

e->event.base.type = DRM_EVENT_VBLANK;
e->event.base.type = DRM_EVENT_FLIP_COMPLETE;
e->event.base.length = sizeof e->event;
e->event.user_data = page_flip->user_data;
e->base.event = &e->event.base;
Expand Down
1 change: 1 addition & 0 deletions include/drm/drm.h
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,7 @@ struct drm_event {
};

#define DRM_EVENT_VBLANK 0x01
#define DRM_EVENT_FLIP_COMPLETE 0x02

struct drm_event_vblank {
struct drm_event base;
Expand Down

0 comments on commit 7bd4d7b

Please sign in to comment.