Revert "exa: a few small pitch related changes"

This reverts commit 99d88ef69d.

- Some pixmaps under classic have a sys_pitch which is 0, no idea why. This is
causing rendering corruption.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
Acked-by: Michel Dänzer <michel@daenzer.net>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Maarten Maathuis
2009-12-02 20:24:02 +01:00
committed by Keith Packard
parent 98c8b75225
commit 8ea415d417
2 changed files with 8 additions and 14 deletions

View File

@@ -323,17 +323,10 @@ ExaDoPrepareAccess(PixmapPtr pPixmap, int index)
has_gpu_copy = exaPixmapHasGpuCopy(pPixmap);
if (has_gpu_copy) {
/* This can be NULL, but the driver prepareAccess call should
* take care of that. */
if (has_gpu_copy && pExaPixmap->fb_ptr)
pPixmap->devPrivate.ptr = pExaPixmap->fb_ptr;
pPixmap->devKind = pExaPixmap->fb_pitch;
} else {
/* For mixed pixmaps this can be NULL, but that will be fixed
* later in exaPrepareAccessReg_mixed(). */
else
pPixmap->devPrivate.ptr = pExaPixmap->sys_ptr;
pPixmap->devKind = pExaPixmap->sys_pitch;
}
/* Store so we can handle repeated / nested calls. */
pExaScr->access[index].pixmap = pPixmap;