summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@localhost.localdomain>2011-08-21 10:11:48 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2011-08-22 10:30:14 -0400
commitb89a0b11b1133bf2991580203867830747ad4de1 (patch)
tree3658d9ceeea97304bdf7c61c529f66cf35fe72ea
parent4a040532492b212e05f5375994adcfdd171e0410 (diff)
Only save the VGA fonts for the primary device.
Otherwise, if we try to save the VGA fonts when initializing a non-primary device, the saving will be routed to the primary one putting it into VGA mode, which then locks up.
-rw-r--r--src/qxl_driver.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/qxl_driver.c b/src/qxl_driver.c
index f3768f7..428735a 100644
--- a/src/qxl_driver.c
+++ b/src/qxl_driver.c
@@ -409,7 +409,8 @@ qxl_save_state(ScrnInfoPtr pScrn)
{
qxl_screen_t *qxl = pScrn->driverPrivate;
- vgaHWSaveFonts(pScrn, &qxl->vgaRegs);
+ if (xf86IsPrimaryPci (qxl->pci))
+ vgaHWSaveFonts(pScrn, &qxl->vgaRegs);
}
static void
@@ -417,7 +418,8 @@ qxl_restore_state(ScrnInfoPtr pScrn)
{
qxl_screen_t *qxl = pScrn->driverPrivate;
- vgaHWRestoreFonts(pScrn, &qxl->vgaRegs);
+ if (xf86IsPrimaryPci (qxl->pci))
+ vgaHWRestoreFonts(pScrn, &qxl->vgaRegs);
}
#endif /* XSPICE */