diff options
author | =?utf-8?q?Michel_D=C3=A4nzer?= <michel@tungstengraphics.com> | 2006-10-24 09:34:18 -0400 |
---|---|---|
committer | airlied <airlied@linux.ie> | 2006-12-06 23:53:29 -0500 |
commit | ab285d74e6742422fd0465577a31fb03fe9ed241 (patch) | |
tree | 172d9731b6288751478fd25d985aefb90f7c41bf /drivers/char/drm/drm.h | |
parent | 8163e418f71e46a28bac6625b4c633c13bd53c8d (diff) |
drm: Core vsync: Add flag DRM_VBLANK_NEXTONMISS.
When this flag is set and the target sequence is missed, wait for the next
vertical blank instead of returning immediately.
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/char/drm/drm.h')
-rw-r--r-- | drivers/char/drm/drm.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/char/drm/drm.h b/drivers/char/drm/drm.h index 07a699029c3e..3f28a1551621 100644 --- a/drivers/char/drm/drm.h +++ b/drivers/char/drm/drm.h | |||
@@ -487,12 +487,14 @@ typedef struct drm_irq_busid { | |||
487 | typedef enum { | 487 | typedef enum { |
488 | _DRM_VBLANK_ABSOLUTE = 0x0, /**< Wait for specific vblank sequence number */ | 488 | _DRM_VBLANK_ABSOLUTE = 0x0, /**< Wait for specific vblank sequence number */ |
489 | _DRM_VBLANK_RELATIVE = 0x1, /**< Wait for given number of vblanks */ | 489 | _DRM_VBLANK_RELATIVE = 0x1, /**< Wait for given number of vblanks */ |
490 | _DRM_VBLANK_NEXTONMISS = 0x10000000, /**< If missed, wait for next vblank */ | ||
490 | _DRM_VBLANK_SECONDARY = 0x20000000, /**< Secondary display controller */ | 491 | _DRM_VBLANK_SECONDARY = 0x20000000, /**< Secondary display controller */ |
491 | _DRM_VBLANK_SIGNAL = 0x40000000 /**< Send signal instead of blocking */ | 492 | _DRM_VBLANK_SIGNAL = 0x40000000 /**< Send signal instead of blocking */ |
492 | } drm_vblank_seq_type_t; | 493 | } drm_vblank_seq_type_t; |
493 | 494 | ||
494 | #define _DRM_VBLANK_TYPES_MASK (_DRM_VBLANK_ABSOLUTE | _DRM_VBLANK_RELATIVE) | 495 | #define _DRM_VBLANK_TYPES_MASK (_DRM_VBLANK_ABSOLUTE | _DRM_VBLANK_RELATIVE) |
495 | #define _DRM_VBLANK_FLAGS_MASK (_DRM_VBLANK_SIGNAL | _DRM_VBLANK_SECONDARY) | 496 | #define _DRM_VBLANK_FLAGS_MASK (_DRM_VBLANK_SIGNAL | _DRM_VBLANK_SECONDARY | \ |
497 | _DRM_VBLANK_NEXTONMISS) | ||
496 | 498 | ||
497 | struct drm_wait_vblank_request { | 499 | struct drm_wait_vblank_request { |
498 | drm_vblank_seq_type_t type; | 500 | drm_vblank_seq_type_t type; |