diff options
author | Adam Jackson <ajax@nwnk.net> | 2006-04-02 01:03:50 +0000 |
---|---|---|
committer | Adam Jackson <ajax@nwnk.net> | 2006-04-02 01:03:50 +0000 |
commit | 07373669514b104a11fb1b4ed5214f3764c83a2f (patch) | |
tree | 79180b5c1bb8ee011b4bf7a829f57ae55f832c59 /src/mga_dga.c | |
parent | 88ece3c37c4ed529686b6cdea1bf9b6eed8fceea (diff) |
Bug #6328: Add support for Matrox G200SE chips. (Matrox)
Diffstat (limited to 'src/mga_dga.c')
-rw-r--r-- | src/mga_dga.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mga_dga.c b/src/mga_dga.c index e728484..c75ef0c 100644 --- a/src/mga_dga.c +++ b/src/mga_dga.c @@ -154,8 +154,16 @@ SECOND_PASS: mode->imageWidth = pitch; mode->imageHeight = pMga->FbUsableSize / mode->bytesPerScanline; mode->pixmapWidth = pitch; - mode->pixmapHeight = (min(pMga->FbUsableSize, 16*1024*1024)) / - mode->bytesPerScanline; + switch (pMga->Chipset) { + case PCI_CHIP_MGAG200_SE_A_PCI: + case PCI_CHIP_MGAG200_SE_B_PCI: + mode->pixmapHeight = (min(pMga->FbUsableSize, 1*1024*1024)) / + mode->bytesPerScanline; + break; + default: + mode->pixmapHeight = (min(pMga->FbUsableSize, 16*1024*1024)) / + mode->bytesPerScanline; + } mode->maxViewportX = mode->imageWidth - mode->viewportWidth; mode->maxViewportY = (pMga->FbUsableSize / mode->bytesPerScanline) - mode->viewportHeight; |