summaryrefslogtreecommitdiff
path: root/src/i830_randr.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@guitar.keithp.com>2006-12-19 22:39:57 -0800
committerKeith Packard <keithp@guitar.keithp.com>2006-12-19 22:39:57 -0800
commit4ba72fc408e7fab7c384aff5e73f0cfb8fd86cf3 (patch)
treed63d8b33c80c961a1a02fa6213b18bf376619490 /src/i830_randr.c
parentc28075e1d70c98b39fc9829a6a01da171a9b9426 (diff)
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.
Diffstat (limited to 'src/i830_randr.c')
-rw-r--r--src/i830_randr.c2
1 files changed, 2 insertions, 0 deletions
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);
}