Restore the CLOCK_CNTL_INDEX *after* we're done messing with it. Makes Xorg
properly restore the video mode upon exit on macppc. ok matthieu@, deraadt@
This commit is contained in:
parent
c5cdf7be69
commit
0c02cbb205
@ -3308,6 +3308,8 @@ static void R128Restore(ScrnInfoPtr pScrn)
|
||||
|
||||
R128Blank(pScrn);
|
||||
|
||||
R128RestoreMode(pScrn, restore);
|
||||
|
||||
if (!info->IsSecondary) {
|
||||
OUTREG(R128_AMCGPIO_MASK, restore->amcgpio_mask);
|
||||
OUTREG(R128_AMCGPIO_EN_REG, restore->amcgpio_en_reg);
|
||||
@ -3316,7 +3318,6 @@ static void R128Restore(ScrnInfoPtr pScrn)
|
||||
OUTREG(R128_DP_DATATYPE, restore->dp_datatype);
|
||||
}
|
||||
|
||||
R128RestoreMode(pScrn, restore);
|
||||
#ifdef WITH_VGAHW
|
||||
if (info->VGAAccess) {
|
||||
vgaHWPtr hwp = VGAHWPTR(pScrn);
|
||||
|
Loading…
Reference in New Issue
Block a user