From fdd7508e53043f82f9cf422fc968c6574334a667 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 19 Dec 2014 07:59:24 +0000 Subject: sna/dri2: Decouple Window cache on Pixmap changes If the Pixmap for a Window is changed (i.e. Composite redirection/unredirection), we also need to decouple any associated DRI2 front buffer for the Pixmap (e.g. used for single CRTC flipping). Signed-off-by: Chris Wilson --- src/sna/sna.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/sna/sna.h') diff --git a/src/sna/sna.h b/src/sna/sna.h index 3e16f7e5..3116f116 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -539,6 +539,7 @@ bool sna_dri2_open(struct sna *sna, ScreenPtr pScreen); void sna_dri2_page_flip_handler(struct sna *sna, struct drm_event_vblank *event); void sna_dri2_vblank_handler(struct drm_event_vblank *event); void sna_dri2_pixmap_update_bo(struct sna *sna, PixmapPtr pixmap, struct kgem_bo *bo); +void sna_dri2_decouple_window(WindowPtr win); void sna_dri2_destroy_window(WindowPtr win); void sna_dri2_close(struct sna *sna, ScreenPtr pScreen); #else @@ -546,6 +547,7 @@ static inline bool sna_dri2_open(struct sna *sna, ScreenPtr pScreen) { return fa static inline void sna_dri2_page_flip_handler(struct sna *sna, struct drm_event_vblank *event) { } static inline void sna_dri2_vblank_handler(struct drm_event_vblank *event) { } static inline void sna_dri2_pixmap_update_bo(struct sna *sna, PixmapPtr pixmap, struct kgem_bo *bo) { } +static inline void sna_dri2_decouple_window(WindowPtr win) { } static inline void sna_dri2_destroy_window(WindowPtr win) { } static inline void sna_dri2_close(struct sna *sna, ScreenPtr pScreen) { } #endif -- cgit v1.2.3