diff options
author | Alex Deucher <agd5f@yahoo.com> | 2005-08-26 02:11:24 +0000 |
---|---|---|
committer | Alex Deucher <agd5f@yahoo.com> | 2005-08-26 02:11:24 +0000 |
commit | 879213455740d2d653d38c712275f07610e4dc9c (patch) | |
tree | d2c4bef0f475babd864de684d5d48fa14fd74c10 /src/radeon_driver.c | |
parent | 6519cc71e4387ef979de90be517145611511ff1a (diff) |
- fix pitch increment (Aapo Tahkola, Roland Scheidegger)
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index f4809fbd..8974a339 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -3684,10 +3684,10 @@ static int RADEONValidateMergeModes(ScrnInfoPtr pScrn1) NULL, /* linePitches */ 8 * 64, /* minPitch */ 8 * 1024, /* maxPitch */ - info->allowColorTiling ? info->MaxSurfaceWidth : + info->allowColorTiling ? 2048 : 64 * pScrn1->bitsPerPixel, /* pitchInc */ 128, /* minHeight */ - 8 * 1024, /*2048,*/ /* maxHeight */ + info->MaxLines, /* maxHeight */ pScrn1->display->virtualX ? pScrn1->virtualX : 0, pScrn1->display->virtualY ? pScrn1->virtualY : 0, info->FbMapSize, @@ -3747,10 +3747,10 @@ static int RADEONValidateMergeModes(ScrnInfoPtr pScrn1) NULL, /* linePitches */ 8 * 64, /* minPitch */ 8 * 1024, /* maxPitch */ - info->allowColorTiling ? info->MaxSurfaceWidth : + info->allowColorTiling ? 2048 : 64 * pScrn1->bitsPerPixel, /* pitchInc */ 128, /* minHeight */ - 8 * 1024, /*2048,*/ /* maxHeight */ + info->MaxLines, /* maxHeight */ pScrn1->display->virtualX, pScrn1->display->virtualY, info->FbMapSize, @@ -3949,7 +3949,7 @@ static Bool RADEONPreInitModes(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10) NULL, /* linePitches */ 8 * 64, /* minPitch */ 8 * 1024, /* maxPitch */ - info->allowColorTiling ? info->MaxSurfaceWidth : + info->allowColorTiling ? 2048 : 64 * pScrn->bitsPerPixel, /* pitchInc */ 128, /* minHeight */ info->MaxLines, /* maxHeight */ @@ -4018,7 +4018,7 @@ static Bool RADEONPreInitModes(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10) NULL, /* linePitches */ 8 * 64, /* minPitch */ 8 * 1024, /* maxPitch */ - info->allowColorTiling ? info->MaxSurfaceWidth : + info->allowColorTiling ? 2048 : 64 * pScrn->bitsPerPixel, /* pitchInc */ 128, /* minHeight */ info->MaxLines, /* maxHeight */ |