modesetting: Further port away from drmmode_bo

Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
stefan11111
2026-02-06 21:50:54 +02:00
committed by Enrico Weigelt
parent 615ca5fd3c
commit 4e7201796c
2 changed files with 4 additions and 7 deletions

View File

@@ -73,6 +73,7 @@
#endif
#include "driver.h"
#include "drmmode_bo.h"
static void AdjustFrame(ScrnInfoPtr pScrn, int x, int y);
static Bool CloseScreen(ScreenPtr pScreen);
@@ -1707,9 +1708,7 @@ modesetCreateScreenResources(ScreenPtr pScreen)
drmmode_uevent_init(pScrn, &ms->drmmode);
if (!ms->drmmode.glamor) {
pixels = drmmode_map_front_bo(&ms->drmmode);
if (!pixels)
return FALSE;
pixels = gbm_bo_get_map(ms->drmmode.front_bo.gbm);
}
rootPixmap = pScreen->GetScreenPixmap(pScreen);

View File

@@ -2361,7 +2361,7 @@ drmmode_shadow_fb_create(xf86CrtcPtr crtc, void *data, int width, int height,
return NULL;
}
pPixData = drmmode_bo_map(drmmode, bo);
pPixData = gbm_bo_get_map(bo->gbm);
pitch = gbm_bo_get_stride(bo->gbm);
pixmap = drmmode_create_pixmap_header(scrn->pScreen,
@@ -4009,9 +4009,7 @@ drmmode_xf86crtc_resize(ScrnInfoPtr scrn, int width, int height)
scrn->displayWidth = pitch / kcpp;
if (!drmmode->glamor) {
new_pixels = drmmode_map_front_bo(drmmode);
if (!new_pixels)
goto fail;
new_pixels = gbm_bo_get_map(drmmode->front_bo.gbm);
}
if (drmmode->shadow_enable) {