Bug 253258 - graphics/mesa-dri: dri is not usable on systems with i965 graphics since 20.2
Summary: graphics/mesa-dri: dri is not usable on systems with i965 graphics since 20.2
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: freebsd-x11 (Nobody)
Depends on:
Reported: 2021-02-04 22:52 UTC by Lars Herschke
Modified: 2021-02-26 21:45 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (x11)


Note You need to log in before you can comment on or make changes to this bug.
Description Lars Herschke 2021-02-04 22:52:04 UTC
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)
Comment 1 Jan Beich freebsd_committer 2021-02-05 02:07:48 UTC
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
Comment 2 Lars Herschke 2021-02-05 08:04:41 UTC
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