diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-24 10:31:02 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-24 11:04:50 +0000 |
commit | 1b82b7b48d17b4b3401e9d82b0fe86df06c8d451 (patch) | |
tree | c12c5d6c9ad91849f100980acfbff4f6f7ce84b8 /src/sna/sna.h | |
parent | f656f6afa288c63968f45d6d32c96a4cf6213117 (diff) |
sna/present: Cancel pending unflips when resizing the screen
Otherwise we try to flip back before we complete the mode change.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna/sna.h')
-rw-r--r-- | src/sna/sna.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index 3c19aa5d..755bd8e3 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -599,11 +599,13 @@ bool sna_present_open(struct sna *sna, ScreenPtr pScreen); void sna_present_update(struct sna *sna); void sna_present_close(struct sna *sna, ScreenPtr pScreen); void sna_present_vblank_handler(struct drm_event_vblank *event); +void sna_present_cancel_flip(struct sna *sna); #else static inline bool sna_present_open(struct sna *sna, ScreenPtr pScreen) { return false; } static inline void sna_present_update(struct sna *sna) { } static inline void sna_present_close(struct sna *sna, ScreenPtr pScreen) { } static inline void sna_present_vblank_handler(struct drm_event_vblank *event) { } +void sna_present_cancel_flip(struct sna *sna) { } #endif extern bool sna_crtc_set_sprite_rotation(xf86CrtcPtr crtc, uint32_t rotation); |