From owner-freebsd-ports@freebsd.org Sun Mar 8 19:34:09 2020 Return-Path: Delivered-To: freebsd-ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ECE822734C5 for ; Sun, 8 Mar 2020 19:34:09 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 48bBPF4D4Dz3C5r for ; Sun, 8 Mar 2020 19:34:09 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 4084C2734BD; Sun, 8 Mar 2020 19:34:09 +0000 (UTC) Delivered-To: ports@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 37E642734BA; Sun, 8 Mar 2020 19:34:09 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from mail.daemonic.se (mail.daemonic.se [176.58.89.161]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 48bBPC6Q6Lz3C30; Sun, 8 Mar 2020 19:34:07 +0000 (UTC) (envelope-from zeising@freebsd.org) Received: from cid.daemonic.se (localhost [IPv6:::1]) by mail.daemonic.se (Postfix) with ESMTP id 48bBP30L40z3lvf; Sun, 8 Mar 2020 19:33:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at daemonic.se Received: from mail.daemonic.se ([IPv6:::1]) (using TLS with cipher ECDHE-RSA-AES128-GCM-SHA256) by cid.daemonic.se (mailscanner.daemonic.se [IPv6:::1]) (amavisd-new, port 10587) with ESMTPS id WB7xPhTHUU3K; Sun, 8 Mar 2020 19:33:58 +0000 (UTC) Received: from garnet.daemonic.se (unknown [IPv6:2001:470:dca9:201:c079:be8f:8479:372c]) by mail.daemonic.se (Postfix) with ESMTPSA id 48bBP22Btcz3lcX; Sun, 8 Mar 2020 19:33:58 +0000 (UTC) To: x11@FreeBSD.org, current@FreeBSD.org, stable@FreeBSD.org, ports@FreeBSD.org Reply-To: x11@FreeBSD.org From: Niclas Zeising Subject: users of drm-legacy-kmod or drm drivers from base Message-ID: <6413dbc6-a64e-b69a-ffcc-9c555df24e71@freebsd.org> Date: Sun, 8 Mar 2020 20:33:55 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 48bBPC6Q6Lz3C30 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_HAM_LONG(-0.96)[-0.957,0]; NEURAL_SPAM_MEDIUM(0.96)[0.961,0]; ASN(0.00)[asn:36236, ipnet:176.58.89.0/24, country:US] X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Mar 2020 19:34:10 -0000 [ 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