Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Mar 2020 20:33:55 +0100
From:      Niclas Zeising <zeising@freebsd.org>
To:        x11@FreeBSD.org, current@FreeBSD.org, stable@FreeBSD.org, ports@FreeBSD.org
Subject:   users of drm-legacy-kmod or drm drivers from base
Message-ID:  <6413dbc6-a64e-b69a-ffcc-9c555df24e71@freebsd.org>

next in thread | raw e-mail | index | archive | help
[ This is cross-posted across several mailing lists for maximum 
visibility.  Please respect reply-to and keep replies to x11@FreeBSD.org 
. Thank you! ]

In order to improve support for the new lkpi based graphics drivers 
(drm-kmod) and to improve the graphics stack we have switched mesa to 
prefer DRI3 over DRI2.  This was done in r528071.  For those using 
drm-kmod, this should improve performance somewhat, and more importantly 
alleviate the use of the FIXDRM option (now removed) in xorg-server.

However, for those of you using graphics/drm-legacy-kmod or the drm 
drivers in base, this change can cause issues.  If you are experiencing 
problems when running OpenGL applications, you can force the use of the 
DRI2 backend.

To force mesa to use DRI2, set the environment variable 
LIBGL_DRI3_DISABLE to 1 before starting any OpenGL application.  The 
easiest way to accomplish this is by adding it to either your shell 
startup file or ~/.xinitrc.

As an example, for users of [t]csh, put
setenv LIBGL_DRI3_DISABLE 1
in ~/.cshrc.

For users of bourne type shells (sh, bash, ksh, zsh, ...) instead put
export LIBGL_DRI3_DISABLE=1
in ~/.profile

If you are using these legacy drivers, I'm also very interested in 
hearing what issues you are facing that prevents you from using the new 
lkpi based drivers.

Regards
-- 
Niclas Zeising
FreeBSD Graphics Team



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6413dbc6-a64e-b69a-ffcc-9c555df24e71>