xwayland issue with i965_dri.so

Jan Beich jbeich at FreeBSD.org
Thu Mar 12 19:28:08 UTC 2020


Pete Wright <pete at nomadlogic.org> writes:

> On 3/12/20 8:54 AM, Pete Wright wrote:
>>
>>
>> On 2020-03-11 22:41, Jan Beich wrote:
>>> Pete Wright <pete at nomadlogic.org> 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.


More information about the freebsd-x11 mailing list