From 4ba72fc408e7fab7c384aff5e73f0cfb8fd86cf3 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Tue, 19 Dec 2006 22:39:57 -0800 Subject: Reinitialize DGA mode list whenever we update the global list. DGA has a copy of the current mode list (yes, this is broken). Regenerate it whenever the ddx mode list changes. --- src/i830_randr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/i830_randr.c') diff --git a/src/i830_randr.c b/src/i830_randr.c index 0a103846..3d6febc1 100644 --- a/src/i830_randr.c +++ b/src/i830_randr.c @@ -97,6 +97,7 @@ xf86RandR12GetInfo (ScreenPtr pScreen, Rotation *rotations) /* Re-probe the outputs for new monitors or modes */ xf86ProbeOutputModes (scrp); xf86SetScrnInfoModes (scrp); + I830DGAReInit (pScreen); for (mode = scrp->modes; ; mode = mode->next) { @@ -787,6 +788,7 @@ xf86RandR12GetInfo12 (ScreenPtr pScreen, Rotation *rotations) xf86ProbeOutputModes (pScrn); xf86SetScrnInfoModes (pScrn); + I830DGAReInit (pScreen); return xf86RandR12SetInfo12 (pScreen); } -- cgit v1.2.3