Since the mesa-dri update to version 20.2, dri no longer works on my system. The following errors and information are reported by glxinfo. [intel_init_bufmgr: 1936] Kernel 3.9 required. libGL error: failed to create dri screen libGL error: failed to load driver: i965 Extended renderer info (GLX_MESA_query_renderer): Vendor: Mesa/X.org (0xffffffff) Device: llvmpipe (LLVM 10.0.1, 128 bits) (0xffffffff) Accelerated: no OpenGL vendor string: Mesa/X.org OpenGL renderer string: llvmpipe (LLVM 10.0.1, 128 bits) During the update the patch extra-src_mesa_drivers_dri_i965_intel__screen.c was removed. The reactivation of this patch and a subsequent rebuild solves the problem for me. glxinfo then outputs the following. Extended renderer info (GLX_MESA_query_renderer): Vendor: Intel Open Source Technology Center (0x8086) Device: Mesa DRI Intel(R) 965GM (CL) (0x2a02) Accelerated: yes OpenGL vendor string: Intel Open Source Technology Center OpenGL renderer string: Mesa DRI Intel(R) 965GM (CL)
Did you try drm-kmod instead of patching? In-base drm2 (aka drm-legacy-kmod) is deprecated (removed since FreeBSD 13.0) and not officially supported by upstream Mesa e.g., DRI3[1], Wayland. However, drm-kmod is best supported on FreeBSD >= 13.0, especially if you have an old GPU like 0x2a02 (GMA X3100 aka Crestline, released in 2007, Intel Gen4). [1] See 20200308 entry in /usr/ports/UPDATING
I try drm-kmod since the deprecated warning from drm-legacy-kmod with each new version. Unfortunately the xorg server doesn't start anymore. And yes I have a GMA X3100 graphics card. This is the output from pciconf. vgapci0@pci0:0:2:0: class=0x030000 card=0x011f1025 chip=0x2a028086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'Mobile GM965/GL960 Integrated Graphics Controller (primary)' class = display subclass = VGA
I have now patched the drm-kmod module (see https://github.com/FreeBSDDesktop/kms-drm/pull/258) so that it works with my graphics card. With this module I don't need to patch the mesa-dri driver anymore. So I close the bugreport now.