summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2007-12-12 18:10:52 -0500
committerAdam Jackson <ajax@redhat.com>2007-12-12 18:10:52 -0500
commit2096022c0757b675d39dea8830125ba800b43160 (patch)
tree0cc12f42846d9906fe0bdcdd9e91cca1cf1dbd9c
parent81717e5780350665166dd7a0f4d96135609a8764 (diff)
G200SE-A can't cope with bigger than 1600x1200.
-rw-r--r--src/mga_driver.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mga_driver.c b/src/mga_driver.c
index d11aed3..be26e89 100644
--- a/src/mga_driver.c
+++ b/src/mga_driver.c
@@ -4286,6 +4286,13 @@ MGAValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags)
ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
MGAPtr pMga = MGAPTR(pScrn);
+ if (pMga->Chipset == PCI_CHIP_MGAG200_SE_A_PCI) {
+ if (mode->HDisplay > 1600)
+ return MODE_VIRTUAL_X;
+ if (mode->VDisplay > 1200)
+ return MODE_VIRTUAL_Y;
+ }
+
lace = 1 + ((mode->Flags & V_INTERLACE) != 0);
if ((mode->CrtcHDisplay <= 2048) &&