summaryrefslogtreecommitdiff
path: root/src/i830_randr.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@bouzouki.jf.intel.com>2006-12-04 14:02:30 -0800
committerKeith Packard <keithp@bouzouki.jf.intel.com>2006-12-04 14:02:30 -0800
commit2e8c927f9308069a82f25b65bb0c62bc5a156832 (patch)
treeda916562cf71dc2c6cb8af093f151f822a84ed52 /src/i830_randr.c
parent8fcf9a81179ee8577ddab5e904c58fbfd14cf59c (diff)
Re-create RandR Crtc/output structures on server regen.
RandR structures must be re-created when the server reinitializes, but the driver PreInit function is not re-invoked. Recreate them manually in this case during ScreenInit.
Diffstat (limited to 'src/i830_randr.c')
-rw-r--r--src/i830_randr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_randr.c b/src/i830_randr.c
index da8d7460..00770201 100644
--- a/src/i830_randr.c
+++ b/src/i830_randr.c
@@ -900,6 +900,9 @@ xf86RandR12Init12 (ScreenPtr pScreen)
ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
rrScrPrivPtr rp = rrGetScrPriv(pScreen);
+ if (xf86CrtcScreenInit (pScreen))
+ return FALSE;
+
rp->rrGetInfo = xf86RandR12GetInfo12;
rp->rrScreenSetSize = xf86RandR12ScreenSetSize;
rp->rrCrtcSet = xf86RandR12CrtcSet;