Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Mar 2018 22:27:26 -0700
From:      Kevin Oberman <rkoberman@gmail.com>
To:        Jan Beich <jbeich@freebsd.org>
Cc:        "freebsd-x11@freebsd.org" <x11@freebsd.org>
Subject:   Re: [CFT] Mesa 18.0.0 update (mesa-libs, mesa-dri, libosmesa, clover)
Message-ID:  <CAN6yY1t-%2B50rBzm1ods8fYqmLdEQgAE02EbkFmYUQVwHjKCRjg@mail.gmail.com>
In-Reply-To: <7epx-cg9f-wny@FreeBSD.org>
References:  <7epx-cg9f-wny@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Mar 27, 2018 at 3:20 PM, Jan Beich <jbeich@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@gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAN6yY1t-%2B50rBzm1ods8fYqmLdEQgAE02EbkFmYUQVwHjKCRjg>