mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-11 23:43:06 +00:00
exa: a few small pitch related changes
- Setting pitch before exaCopyDirty* is not needed. 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:
parent
a54c23fe64
commit
99d88ef69d
2 changed files with 14 additions and 8 deletions
11
exa/exa.c
11
exa/exa.c
|
|
@ -323,10 +323,17 @@ ExaDoPrepareAccess(PixmapPtr pPixmap, int index)
|
|||
|
||||
has_gpu_copy = exaPixmapHasGpuCopy(pPixmap);
|
||||
|
||||
if (has_gpu_copy && pExaPixmap->fb_ptr)
|
||||
if (has_gpu_copy) {
|
||||
/* This can be NULL, but the driver prepareAccess call should
|
||||
* take care of that. */
|
||||
pPixmap->devPrivate.ptr = pExaPixmap->fb_ptr;
|
||||
else
|
||||
pPixmap->devKind = pExaPixmap->fb_pitch;
|
||||
} else {
|
||||
/* For mixed pixmaps this can be NULL, but that will be fixed
|
||||
* later in exaPrepareAccessReg_mixed(). */
|
||||
pPixmap->devPrivate.ptr = pExaPixmap->sys_ptr;
|
||||
pPixmap->devKind = pExaPixmap->sys_pitch;
|
||||
}
|
||||
|
||||
/* Store so we can handle repeated / nested calls. */
|
||||
pExaScr->access[index].pixmap = pPixmap;
|
||||
|
|
|
|||
Loading…
Reference in a new issue