wayland backend device selection issues on asahi
I guess this means we need to be smarter about picking devices? "Permission denied" seems misleading because I have rw on all the files and am running a sway session on DRM under the same user.
00:00:00.028 [render/egl.c:941] DRM device /dev/dri/card0 has no render node, falling back to primary node
00:00:00.028 [types/wlr_drm.c:217] No DRM render node available, falling back to primary node '/dev/dri/card0'
00:00:00.028 [types/wlr_linux_dmabuf_v1.c:893] DRM device /dev/dri/card0 has no render node, falling back to primary node
00:00:00.028 [render/allocator/allocator.c:106] Trying to create gbm allocator
00:00:00.028 [render/allocator/allocator.c:85] drmAuthMagic failed: Permission denied
00:00:00.028 [tinywl/tinywl.c:873] failed to create wlr_allocator
$ ls -l /dev/dri
total 0
drwxr-xr-x 2 root root 100 Jun 19 09:35 by-path
crw-rw----+ 1 root video 226, 0 Jun 19 09:35 card0
crw-rw----+ 1 root video 226, 1 Jun 19 08:56 card1
crw-rw-rw- 1 root render 226, 128 Jun 19 08:56 renderD128
$ ls -l /dev/dri/by-path
total 0
lrwxrwxrwx 1 root root 8 Jun 19 08:56 platform-206400000.gpu-card -> ../card1
lrwxrwxrwx 1 root root 13 Jun 19 08:56 platform-206400000.gpu-render -> ../renderD128
lrwxrwxrwx 1 root root 8 Jun 19 09:35 platform-soc:display-subsystem-card -> ../card0
Edited by Rose Hudson