From 90e1458b86b78060aa9a95e0799733bfd579a9cc Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 14 Jun 2025 09:22:33 -0700 Subject: [PATCH] Revert "use dixDestroyPixmap() instead of direct driver call" This reverts commit eb15e41211c4a10b14561ec069f75c90f03d7c91 --- src/lx_display.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/lx_display.c b/src/lx_display.c index 5041845..cf5a58a 100644 --- a/src/lx_display.c +++ b/src/lx_display.c @@ -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) {