Re: xwayland issue with i965_dri.so
Pete Wright <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.x11 |
|---|---|
| Message-ID | <[email protected]> |
On 3/12/20 12:28 PM, Jan Beich wrote: > Pete Wright <[email protected]> writes: > >> On 3/12/20 8:54 AM, Pete Wright wrote: >>> >>> On 2020-03-11 22:41, Jan Beich wrote: >>>> Pete Wright <[email protected]> writes: >>>> >>>>> hello - i've discussed this on irc but wanted to move it to email for >>>>> wider exposure (and also providing myself with notes i can refer to >>>>> later). >>>>> >>>>> i am able to launch sway on my i915 intel laptop running 12-STABLE >>>>> without any issues, and i am able to run xfce4-terminal in native >>>>> wayland more which is great! yet i notice this from the output >>>>> from sway: >>>>> >>>>> i965_dri.so does not support the 0xffffffff PCI ID. >>>> This error comes from Mesa. >>>> >>>>> Refusing to try glamor on llvmpipe >>>>> EGL setup failed, disabling glamor >>>>> Failed to initialize glamor, falling back to sw >>>>> >>>>> >>>>> i believe this is causing problems with starting Xorg apps via >>>>> xwayland, for example chrome and firefox crash on startup. i did some >>>>> googling and it looks like Jan ran into this problem a while back: >>>>> http://freebsd.1045724.x6.nabble.com/Xwayland-i965-dri-so-does-not-support-the-0xffffffff-PCI-ID-td6307408.html >>>> I also had https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241821 >>>> which did reappear for some time but not anymore. >>>> >>>> What FreeBSD kernel are you running? Makes sure you have >>>> https://reviews.freebsd.org/D23846 as it may affect more than just >>>> Vulkan in Mesa. >>> Thanks for the tip on the outdated linux kernel, it does look like >>> kernel didn't have that patch for the linuxkpi - rebuilding now and >>> will update thread if this fixes things. >>> >> hrm unfortunately running latest kernel from the STABLE branch didn't >> fix this, nor did using the mesa-dri-19.0.x branch from the >> freebsddesktop-ports github repo. maybe someone who is more >> familiar with mesa can point me in the right direction to see why this >> bogus pciID is being passed? > (1) Try https://github.com/myfreeweb/freebsd-ports-dank/tree/lite/graphics/mesa-dev > Intel switched default GL driver from i965 to iris. The latter > is faster, supports more extensions and uses LLVM like AMD drivers. > Reverting to i965 is as simple as "export MESA_LOADER_DRIVER_OVERRIDE=i965" > > (2) Try drm-devel-kmod: upgrade kernel to -CURRENT but leave world as is. > For more bleeding edge use https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244364 > > (3) Debug DRM ioctls using ktrace(1). Comparing with DRI3 usage in > xorg-server may help. > > > Without more people reporting the same issue it's hard to guess further. OK I think I've figured out the issue here. I had set XDG_RUNTIME_DIR to a tmp dir in my home which is part of a ZFS filesystem: XDG_RUNTIME_DIR="$HOME/tmp" After changing this to "/tmp/", which is a tmpfs mount, i am now able to launch xterm/firefox again. looking at the debug output of sway i can confirm sway itself is using hardware acceleration, but xwayland is still using llvm-pipe. i will re-test xwayland trying to get it to use hardware accel as well, i think my first step will be using the updated mesa-dri code then working forward from there. cheers, -pete -- Pete Wright [email protected] @nomadlogicLA _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-x11 To unsubscribe, send any mail to "[email protected]"