From 9b3b591476cc52cc285a8a1f02462db37d5e10c2 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 19 Dec 2014 12:25:30 +0000 Subject: sna/dri2: Preserve the shadow CRTCs when copying to other areas In the Composite setup, if we are doing a DRI2 copy onto the front buffer, we are fully cognizant that the copy will not go onto the unredirected Windows of another Client. So we can preserve the shadow CRTC mapping for those Clients, and prevent ping-ponging between CRTC modes. 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 3116f116..18425e30 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -428,6 +428,8 @@ extern void sna_mode_reset(struct sna *sna); extern int sna_mode_wakeup(struct sna *sna); extern void sna_mode_redisplay(struct sna *sna); extern void sna_shadow_set_crtc(struct sna *sna, xf86CrtcPtr crtc, struct kgem_bo *bo); +extern void sna_shadow_steal_crtcs(struct sna *sna, struct list *list); +extern void sna_shadow_unsteal_crtcs(struct sna *sna, struct list *list); extern void sna_shadow_unset_crtc(struct sna *sna, xf86CrtcPtr crtc); extern bool sna_pixmap_discard_shadow_damage(struct sna_pixmap *priv, const RegionRec *region); -- cgit v1.2.3