mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-09 04:58:06 +02:00
Xephyr: Handle source-only pictures in ephyrPrepare/DoneComposite
There is no pixmap associated with source-only pictures. Fixes Xephyr -fakexa crashing on startup. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fdc79fe72b
commit
eb2cf11724
1 changed files with 4 additions and 2 deletions
|
|
@ -254,7 +254,8 @@ ephyrPrepareComposite(int op, PicturePtr pSrcPicture, PicturePtr pMaskPicture,
|
||||||
EphyrFakexaPriv *fakexa = scrpriv->fakexa;
|
EphyrFakexaPriv *fakexa = scrpriv->fakexa;
|
||||||
|
|
||||||
ephyrPreparePipelinedAccess(pDst, EXA_PREPARE_DEST);
|
ephyrPreparePipelinedAccess(pDst, EXA_PREPARE_DEST);
|
||||||
ephyrPreparePipelinedAccess(pSrc, EXA_PREPARE_SRC);
|
if (pSrc != NULL)
|
||||||
|
ephyrPreparePipelinedAccess(pSrc, EXA_PREPARE_SRC);
|
||||||
if (pMask != NULL)
|
if (pMask != NULL)
|
||||||
ephyrPreparePipelinedAccess(pMask, EXA_PREPARE_MASK);
|
ephyrPreparePipelinedAccess(pMask, EXA_PREPARE_MASK);
|
||||||
|
|
||||||
|
|
@ -298,7 +299,8 @@ ephyrDoneComposite(PixmapPtr pDst)
|
||||||
|
|
||||||
if (fakexa->pMask != NULL)
|
if (fakexa->pMask != NULL)
|
||||||
ephyrFinishPipelinedAccess(fakexa->pMask, EXA_PREPARE_MASK);
|
ephyrFinishPipelinedAccess(fakexa->pMask, EXA_PREPARE_MASK);
|
||||||
ephyrFinishPipelinedAccess(fakexa->pSrc, EXA_PREPARE_SRC);
|
if (fakexa->pSrc != NULL)
|
||||||
|
ephyrFinishPipelinedAccess(fakexa->pSrc, EXA_PREPARE_SRC);
|
||||||
ephyrFinishPipelinedAccess(fakexa->pDst, EXA_PREPARE_DEST);
|
ephyrFinishPipelinedAccess(fakexa->pDst, EXA_PREPARE_DEST);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue