Created attachment 187196 [details] mesa-fix-loader.patch Currently, Wayland EGL clients receive /dev/dri/card408 instead of /dev/dri/card0 as the device path, and fall back to software rendering :D This patch changes the "device name from file descriptor" function in Mesa from a reimplementation of libdrm's drmGetDeviceNameFromFd2 to just calling that function, where we already have this fixed. Reported upstream: https://bugs.freedesktop.org/show_bug.cgi?id=103283
Landed upstream https://cgit.freedesktop.org/mesa/mesa/commit/?id=db8519a369261cdedda50852facc45616d4eba28 — will be there in 17.4 :) But for now it's still worth including into the port.
*** Bug 224203 has been marked as a duplicate of this bug. ***
Is this an issue only on wayland? This isn't clear from the discussion in bug 224203, which is regarding the same thing.
I just landed an updated version of mesa (17.3). Is this patch needed for that version as well? I want to let mesa 17.3 simmer for a little while, before I get to this.
(In reply to Niclas Zeising from comment #4) Yes, this is needed. Until… probably 17.4.
A commit references this bug: Author: jbeich Date: Tue Apr 10 00:14:22 UTC 2018 New revision: 466924 URL: https://svnweb.freebsd.org/changeset/ports/466924 Log: graphics/mesa-dri: fix device name detection for Wayland/EGL PR: 223030 Submitted by: Greg V Obtained from: upstream (Mesa 18.0.0) Approved by: maintainer timeout (4 months) Changes: head/graphics/mesa-dri/Makefile head/graphics/mesa-dri/files/patch-src_loader_loader.c
A commit references this bug: Author: jbeich Date: Tue Apr 10 00:18:46 UTC 2018 New revision: 466930 URL: https://svnweb.freebsd.org/changeset/ports/466930 Log: MFH: r466924 graphics/mesa-dri: fix device name detection for Wayland/EGL PR: 223030 Submitted by: Greg V Obtained from: upstream (Mesa 18.0.0) Approved by: maintainer timeout (4 months) Approved by: ports-secteam blanket Changes: _U branches/2018Q2/ branches/2018Q2/graphics/mesa-dri/Makefile branches/2018Q2/graphics/mesa-dri/files/patch-src_loader_loader.c