Re: Wayland on FreeBSD
Frederic Chardon <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.x11,gmane.os.freebsd.questions |
|---|---|
| Message-ID | <CAMODbkkGvUUwXqzFieyM-MMwQiRu2b6L1hmvgMn9MchDkpB7ig@mail.gmail.com> |
Le lun. 20 avr. 2020 à 12:20, Niclas Zeising <[email protected]> a écrit : > > On 2020-04-20 12:07, Greg V wrote: > > Apr 20, 2020 12:56:35 PM Frederic Chardon <[email protected]>: > > > >> Le dim. 19 avr. 2020 à 13:50, Jan Beich <[email protected]> a écrit : > >> > >>> > >>> > >>> I'm using Sway myself primarily with X11 applications. For example, > >>> "vblank_mode=0 glxgears" shows 3x more FPS than on real Xorg server. ;) > >>> > >> > >> I decided to give it a try, is hardware acceleration supposed to work? > >> glxgears gives 10x less fps than with X, and 3D is incredibly > >> sluggish. > >> eglinfo output that leads me to believe it is not: > >> GBM platform: > >> i965_dri.so does not support the 0xffffffff PCI ID. > >> > >> It is with sway, -current from yesterday, intel HD4000 iGPU (Ivybridge i5-3320M) > >> no difference between drm-devel-kmod or drm-current-kmod. > > > > Sway itself wouldn't even start without hardware rendering, it doesn't *have* a software renderer. > > > > For the X applications like glxgears, I guess with the mesa build that's in official ports currently you still need that DRI3 something environment variable.. > > You shouldn't need that one. We switched the default to use DRI3 not > long after xorg-server was updated to 1.20. > https://svnweb.freebsd.org/ports?view=revision&revision=528071 > It should also be in the latest quarterly branch. > Regards > -- > Niclas With or without LIBGL_DRI3_ENABLE=1 in the environment the result is the same. I use official packages, updated yesterday. The problem I face might be due to permission issue. ktrace shows this: 28047 eglinfo CALL openat(AT_FDCWD,0x7fffffffc820,0x100002<O_RDWR|O_CLOEXEC>) 28047 eglinfo NAMI "/dev/dri/card0" 28047 eglinfo RET openat 3 /..../ 28047 eglinfo CALL ioctl(0x3,0xc0106446,0x7fffffffbc70) 28047 eglinfo RET ioctl -1 errno 13 Permission denied ls -l /dev/dri/card0 lrwxr-xr-x 1 root wheel 8 20 avr. 13:52 /dev/dri/card0@ -> ../drm/0 ls -l /dev/drm/0 crw-rw---- 1 root video 0x83 20 avr. 13:08 /dev/drm/0 I am in both wheel and video group, and X11 is working just fine. Any additional config is necessary? Thanks _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-x11 To unsubscribe, send any mail to "[email protected]"