GTK4 apps fail to render: error 7: importing the supplied dmabufs failed" with split render node
Starting any GTK4 app on a system with separate render node (etnaviv with mxsfb display controller) fails with the above message in phoc using wlroots git as of 47bf87ad.
The wlroots side looks like:
[render/allocator/gbm.c:213] Created GBM allocator with backend drm
[render/allocator/gbm.c:216] Using DRM node /dev/dri/card1
[render/egl.c:941] DRM device /dev/dri/card1 has no render node, falling back to primary node
[types/wlr_drm.c:222] No DRM render node available, falling back to primary node '/dev/dri/card1'
[types/wlr_linux_dmabuf_v1.c:899] DRM device /dev/dri/card1 has no render node, falling back to primary node
…
[types/wlr_linux_dmabuf_v1.c:212] Failed to import DMA-BUF FD: Invalid argument
and indeed if I either:
- make
check_import_dmabuf
and always returntrue
(so we don't trydrmPrimeFDToHandle
on the display device)
or
- open the render node
/dev/dri/renderD128
inset_default_feedback
or
- set
WLR_RENDER_DRM_DEVICE=/dev/dri/renderD128
the apps render as expected.
I've attached a more complete log of the server start as well (log.txt)
What would be the current way to figure out the appropriate render node?so this can work out of the box?