FS#52537 - [mesa] Build with GLVND support
Attached to Project:
Arch Linux
Opened by Thomas (kugel.) - Friday, 13 January 2017, 22:07 GMT
Last edited by Laurent Carlier (lordheavy) - Monday, 27 February 2017, 22:09 GMT
Opened by Thomas (kugel.) - Friday, 13 January 2017, 22:07 GMT
Last edited by Laurent Carlier (lordheavy) - Monday, 27 February 2017, 22:09 GMT
|
Details
Description:
In order to co-install the nvidia binary driver+libglvnd and mesa, mesa needs to be built with glvnd support. The PKGBUILD does not specify this configure option. In parallel, I suspect that mesa-libgl should gain a depedency on the libglvnd package. |
This task depends upon
Closed by Laurent Carlier (lordheavy)
Monday, 27 February 2017, 22:09 GMT
Reason for closing: Implemented
Additional comments about closing: mesa and nvidia with libglvnd support are now in testing
Monday, 27 February 2017, 22:09 GMT
Reason for closing: Implemented
Additional comments about closing: mesa and nvidia with libglvnd support are now in testing
[1] https://www.x.org/wiki/Events/XDC2016/Program/xdc-2016-glvnd-status.pdf
[2] https://bugs.freedesktop.org/show_bug.cgi?id=92877
[3] https://github.com/NVIDIA/libglvnd/issues/104
[4] https://bugs.freedesktop.org/show_bug.cgi?id=98428
[5] https://patchwork.freedesktop.org/series/12354/
Note: Please install 'mesa-glvnd-all' (other mesa packages support only nouveau drivers)
https://github.com/fafryd1125/PKGBUILDs
Edit:
nvidia packages based on: https://github.com/aaronp24/arch-nvidia-utils
How it's working: https://github.com/aaronp24/arch-nvidia-utils/commit/fabbc896db27048f97569edacb4f5aeb47def076
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/mesa
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/libglvnd
I tried with libGLES libraries from libglvnd and it was working fine. Fedora uses libGLES from libglvnd in their packages.
Try to run weston and see what happens
No. I tested it. :)
"OpenGL/, GLESv1/, and GLESv2/ contain code to generate libOpenGL.so, libGLESv1_CM.so, and libGLESv2.so, respectively. All three are merely wrapper libraries for libGLdispatch."
>So you should file a bug report and paste the link here :)
But it is not a bug. As I wrote before glvnd GLES is not supported in mesa (yet).
Edit: Please see https://github.com/fafryd1125/PKGBUILDs
See http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/tree/mesa.spec
https://github.com/NVIDIA/libglvnd/pull/114
https://patchwork.freedesktop.org/series/19193/
0001-glapi-Link-with-glapi-when-built-shared: https://bugs.freedesktop.org/show_bug.cgi?id=98428
https://copr.fedorainfracloud.org/coprs/kwizart/glvnd/ (Nicolas Chauvet - kwizart)
http://pastebin.com/T5YMSgbR
http://imgur.com/a/W3u3u
Tested pakages: mesa 17.0.0-2, libglvnd 0.2.999+g4ba53457-1 and nouveau drivers
tested with: weston, sway-git, es2_info, es2tri
>And now, do you believe me ?
Yes :)
[1] https://github.com/fafryd1125/PKGBUILDs/blob/master/README.md
Worth noticing:
https://github.com/fafryd1125/PKGBUILDs/blob/master/nvidia-utils/PKGBUILD#L226
https://github.com/fafryd1125/PKGBUILDs/blob/master/nvidia-340xx-utils/PKGBUILD#L204
>* The nvidia-340xx driver will still work but will probably need a specific.
>(non libglvnd?) mesa version.
mesa proposal: https://gist.github.com/fafryd1125/a01b37fc00acb0f9ccdb77c220c45364 (see mesa, mesa-libgl, post above)
Please consider
>Mesa and Nvidia will no longer provide mesa-libgl and nvidia-libgl, which will be.
>obsolete.
steam requires (probably other packages as well) only those files: https://gist.github.com/fafryd1125/d5278a671ae3f97a99e032031cfb73f1
nvidia-untils as optdepends: https://github.com/fafryd1125/PKGBUILDs/blob/master/PKGTREE.md (see post above)
https://github.com/NVIDIA/eglexternalplatform
https://github.com/NVIDIA/egl-wayland
What does it mean?
NVIDIA graphics cards need nvidia/nvidia-dkms and nvidia-libgl packages only.
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/nvidia-304xx-utils
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/lib32-nvidia-304xx-utils
For nvidia-340xx:
https://git.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/nvidia-340xx-utils
https://git.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/lib32-nvidia-340xx-utils
edit:
provides/conflicts=('nvidia-utils' 'libgl' 'libgles' 'libegl' 'nvidia-libgl' 'nvidia-340xx-libgl' 'nvidia-settings')
340: https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-340xx-kmod.git/plain/4.10.0_kernel.patch
304: https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-304xx-kmod.git/plain/kernel_4.10.patch
378: https://pkgs.rpmfusion.org/cgit/nonfree/nvidia-kmod.git/plain/kernel_4.10.patch
Please change the summary: [libglvnd][nvidia][mesa] Build with GLVND support