[CFT] Mesa 18.0.0 update (mesa-libs, mesa-dri, libosmesa, clover)

Kevin Oberman rkoberman at gmail.com
Wed Mar 28 05:27:29 UTC 2018


On Tue, Mar 27, 2018 at 3:20 PM, Jan Beich <jbeich at freebsd.org> wrote:

> Mesa provides OpenGL drivers for Intel and AMD cards on FreeBSD. Recently,
> a new major version was released. So far it was only tested by
> drm-next-kmod.
> Can someone test on FreeBSD < 11.2 for regressions? In case of issues
> attach
> /var/log/Xorg.0.log, run with LIBGL_DEBUG=verbose and check if 17.3.7 is
> also
> affected.
>
> I'd like to land the update in 2 weeks: 18.0.0 on /latest, 17.3.7 on
> /quarterly.
>
> # Apply
> $ fetch -qo /tmp/mesa-17.3.7.diff 'https://bugs.freebsd.org/bugz
> illa/attachment.cgi?id=191718'
> $ fetch -qo /tmp/mesa-18.0.0.diff 'https://bugs.freebsd.org/bugz
> illa/attachment.cgi?id=191881'
> $ patch -Efsp1 -i /tmp/mesa-17.3.7.diff -d /usr/ports
> $ patch -Efsp1 -i /tmp/mesa-18.0.0.diff -d /usr/ports
> $ make all deinstall install clean -C /usr/ports/graphics/mesa-libs
> $ make all deinstall install clean -C /usr/ports/graphics/mesa-dri
>
> # Undo
> $ patch -REfsp1 -i /tmp/mesa-18.0.0.diff -d /usr/ports
> $ patch -REfsp1 -i /tmp/mesa-17.3.7.diff -d /usr/ports
> $ make all deinstall install clean -C /usr/ports/graphics/mesa-libs
> $ make all deinstall install clean -C /usr/ports/graphics/mesa-dri
>
> # Testing examples
> - graphics/mesa-demos: glxgears, eglgears_x11
> - multimedia/mpv: --hwdec=auto (VAAPI/VDPAU EGL interop)
> - www/firefox: layers.acceleration.force-enabled=true (GPU compositing)
> - https://forums.freebsd.org/threads/unreal-engine-4.65300/
>

System is a ThinkPad T520 (Sandy Bridge running 11.1-Stable  r331492).
The results confuse me a bit as glxgears is clearly running much faster,
but gets errors with mesa-18.

Let me know if I can provide any further information.

mesa-17.3:
> glxgears
Running synchronized to the vertical refresh.  The framerate should be
approximately the same as the monitor refresh rate.
300 frames in 5.0 seconds = 59.883 FPS
299 frames in 5.0 seconds = 59.687 FPS
299 frames in 5.0 seconds = 59.694 FPS

> eglgears_x11 --help
EGL_VERSION = 1.4 (DRI2)

mpv appears to run with functional vaapi. Almost no CPU on a 1920x1080 AVC
file.

I set layers.acceleration.force-enabled to true with no obvious problems,
but I don't know just what to look for.

No errors in Xorg.log

mesa-18
> glxgears
[intel_init_bufmgr: 1788] Kernel 3.9 required.
libGL error: failed to create dri screen
libGL error: failed to load driver: i965
5860 frames in 5.0 seconds = 1171.865 FPS
6060 frames in 5.0 seconds = 1211.919 FPS
5994 frames in 5.0 seconds = 1198.623 FPS
5701 frames in 5.0 seconds = 1140.189 FPS
No idea wht the significance of the errors is.

> eglgears_x11
[intel_init_bufmgr: 1788] Kernel 3.9 required.
libEGL warning: DRI2: failed to create dri screen
EGL_VERSION = 1.4 (DRI2)

mpv appears to run with functional vaapi. Almost no CPU on a 1920x1080 AVC
file.

I set layers.acceleration.force-enabled to true with no obvious problems,
but I don't know just what to look for.

Interesting bit of Xorg.log:
[242860.803] (II) intel(0): [DRI2] Setup complete
[242860.803] (II) intel(0): [DRI2]   DRI driver: i965
[242860.803] (II) intel(0): [DRI2]   VDPAU driver: va_gl
[242860.803] (II) intel(0): direct rendering: DRI2 enabled
[242860.812] (II) intel(0): hardware support for Present enabled
[242860.812] (WW) intel(0): Option "RegistryDwords" is not used
[242860.812] (--) RandR disabled
[242860.833] (EE) AIGLX error: Calling driver entry point failed
[242860.834] (EE) AIGLX: reverting to software rendering
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


More information about the freebsd-x11 mailing list