Solved Please Help Me Fix OpenGL

Hi,

I just updated my FreeBSD machine after leaving it alone for 4 month. Installed ~220 patches via
freebsd-update fetch install (twice)
and
pkg update / upgrade

After this I found OpenGL in an unusable state:
Code:
[xxx@xxx ~]$ glxinfo | grep "renderer string"
MESA-LOADER: failed to retrieve device information
OpenGL renderer string: Mesa DRI Unknown Intel Chipset x86/MMX/SSE2

Running glxgears yields in a black window with the following error message:
Code:
[xxx@xxx ~]$ glxgears
MESA-LOADER: failed to retrieve device information
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
intel_do_flush_locked failed: Input/output error

My system:
Code:
[xxx@xxx ~]$ uname -a
FreeBSD xxx.xxx 12.1-RELEASE-p8 FreeBSD 12.1-RELEASE-p8 GENERIC  i386
Code:
[xxx@xxx ~]$ pciconf -lv | grep display -B 3 -A 1
vgapci0@pci0:0:2:0:    class=0x030000 card=0x3048103c chip=0x2e128086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '4 Series Chipset Integrated Graphics Controller'
    class      = display
    subclass   = VGA
vgapci1@pci0:0:2:1:    class=0x038000 card=0x3048103c chip=0x2e138086 rev=0x03 hdr=0x00
    vendor     = 'Intel Corporation'
    device     = '4 Series Chipset Integrated Graphics Controller'
    class      = display
none0@pci0:0:3:0:    class=0x078000 card=0x3048103c chip=0x2e148086 rev=0x03 hdr=0x00

I use the i915kms driver for my legacy Intel card in /etc/rc.conf:

kld_list="/boot/modules/drm2.ko /boot/modules/i915kms.ko"


and the intel(4) Xorg driver.

Interestingly, switching the Xorg driver from intel to modeset uses the llvmpipe software renderer rather than Unknown Intel Chipset

I though it has something to do with the update of MESA to use DRI3 as a default but adding
Code:
LIBGL_DRI3_DISABLE=1
to my .xinitrc doesn't help.

Here's another guy with the same problem, but there's no solution in the thread.

Btw. I am using latest packages rather than quarterly.

Can you help me?
 
I fixed it by removing both drm-kmod and drm-legacy-kmod and installing drm-fbsd12.0-kmod instead.
I also had to remove the /boot/modules/drm2.ko entry from /etc/rc.conf since it's now gone.
 
Back
Top