Revert "use dixDestroyPixmap() instead of direct driver call"

This reverts commit eb15e41211
This commit is contained in:
Alan Coopersmith
2025-06-14 09:22:33 -07:00
parent 7d06dc4328
commit 90e1458b86

View File

@@ -396,13 +396,21 @@ lx_create_bo_pixmap(ScreenPtr pScreen,
depth, bpp, pitch, pPixData)) {
/* ModifyPixmapHeader failed, so we can't use it as scratch pixmap
*/
dixDestroyPixmap(pixmap, 0);
(*pScreen->DestroyPixmap) (pixmap);
return NULL;
}
return pixmap;
}
static void
lx_destory_bo_pixmap(PixmapPtr pixmap)
{
ScreenPtr pScreen = pixmap->drawable.pScreen;
(*pScreen->DestroyPixmap) (pixmap);
}
/* Allocates shadow memory, and allocating a new space for Rotation.
* The size is measured in bytes, and the offset from the beginning
* of card space is returned.
@@ -487,7 +495,7 @@ lx_crtc_shadow_destroy(xf86CrtcPtr crtc, PixmapPtr rpixmap, void *data)
GeodeRec *pGeode = GEODEPTR(pScrni);
if (rpixmap)
dixDestroyPixmap(rpixmap, 0);
lx_destory_bo_pixmap(rpixmap);
/* Free shadow memory */
if (data) {