diff options
author | Alex Deucher <agd5f@yahoo.com> | 2004-10-06 03:59:22 +0000 |
---|---|---|
committer | Alex Deucher <agd5f@yahoo.com> | 2004-10-06 03:59:22 +0000 |
commit | 640c41b618c61031b1b01f1bd79651e0ddf574ff (patch) | |
tree | 94ff254bfdadeb30eac17cd8b55ed01dcfaf7458 | |
parent | 90185e9cd21ea5e5e09955c75fe8bb98b08b2abb (diff) |
Fix setting the fbOffset in the tiled surface registers on supersavages.
-rw-r--r-- | src/savage_accel.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/savage_accel.c b/src/savage_accel.c index e1eb741..c449a55 100644 --- a/src/savage_accel.c +++ b/src/savage_accel.c @@ -1062,18 +1062,18 @@ void SavageSetGBD_PM(ScrnInfoPtr pScrn) ulTmp = (((pScrn->virtualX + 0x3f) & 0x0000ffc0) >> 6) << 20; if (psav->IsSecondary) - OUTREG32(TILED_SURFACE_REGISTER_1,ulTmp | TILED_SURF_BPP16 | (pScrn->fbOffset>>5)); /* 5 or 6? */ + OUTREG32(TILED_SURFACE_REGISTER_1,ulTmp | TILED_SURF_BPP16 | (pScrn->fbOffset>>6)); else - OUTREG32(TILED_SURFACE_REGISTER_0,ulTmp | TILED_SURF_BPP16 | (pScrn->fbOffset>>5)); /* 5 or 6? */ + OUTREG32(TILED_SURFACE_REGISTER_0,ulTmp | TILED_SURF_BPP16 | (pScrn->fbOffset>>6)); } else if (pScrn->bitsPerPixel == 32) { psav->GlobalBD.bd1.HighPart.ResBWTile = tile32;/* tile format destination */ ulTmp = (((pScrn->virtualX + 0x1f) & 0x0000ffe0) >> 5) << 20; if (psav->IsSecondary) - OUTREG32(TILED_SURFACE_REGISTER_1,ulTmp | TILED_SURF_BPP32 | (pScrn->fbOffset>>5)); /* 5 or 6? */ + OUTREG32(TILED_SURFACE_REGISTER_1,ulTmp | TILED_SURF_BPP32 | (pScrn->fbOffset>>6)); else - OUTREG32(TILED_SURFACE_REGISTER_0,ulTmp | TILED_SURF_BPP32 | (pScrn->fbOffset>>5)); /* 5 or 6? */ + OUTREG32(TILED_SURFACE_REGISTER_0,ulTmp | TILED_SURF_BPP32 | (pScrn->fbOffset>>6)); } psav->GlobalBD.bd1.HighPart.ResBWTile |= 0x10;/* disable block write */ |