From e673452b7d66e8e05e7d88c6258283ac9fbaca39 Mon Sep 17 00:00:00 2001 From: Vincent Wei Date: Mon, 31 Jul 2023 10:15:14 +0800 Subject: [PATCH] debug --- src/newgal/drm/drmvideo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgal/drm/drmvideo.c b/src/newgal/drm/drmvideo.c index a15fb29d..c7c0c1b6 100644 --- a/src/newgal/drm/drmvideo.c +++ b/src/newgal/drm/drmvideo.c @@ -2731,6 +2731,9 @@ static GAL_Surface *DRM_SetVideoMode(_THIS, GAL_Surface *current, if (real_buffer && real_buffer->dma_buf && drm_map_buffer_via_dmabuf(vdata, real_buffer)) { _WRN_PRINTF("Cannot map real screen buffer via DMA-BUF\n"); + } + + if (real_buffer->vaddr == NULL) { vdata->driver_ops->map_buffer(vdata->driver, real_buffer); } }