mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
st/xorg: Fix crash on resize with libkms
This commit is contained in:
parent
0d051af612
commit
6749310d3f
1 changed files with 12 additions and 2 deletions
|
|
@ -1066,12 +1066,22 @@ drv_bind_front_buffer_kms(ScrnInfoPtr pScrn)
|
|||
goto err_destroy;
|
||||
|
||||
pScreen->ModifyPixmapHeader(rootPixmap,
|
||||
pScreen->width,
|
||||
pScreen->height,
|
||||
pScrn->virtualX,
|
||||
pScrn->virtualY,
|
||||
pScreen->rootDepth,
|
||||
pScrn->bitsPerPixel,
|
||||
stride,
|
||||
ptr);
|
||||
|
||||
/* This a hack to work around EnableDisableFBAccess setting the pointer
|
||||
* the real fix would be to replace pScrn->EnableDisableFBAccess hook
|
||||
* and set the rootPixmap->devPrivate.ptr to something valid before that.
|
||||
*
|
||||
* But in its infinit visdome something uses either this some times before
|
||||
* that, so our hook doesn't get called before the crash happens.
|
||||
*/
|
||||
pScrn->pixmapPrivate.ptr = ptr;
|
||||
|
||||
return TRUE;
|
||||
|
||||
err_destroy:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue