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
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Laurent Carlier (lordheavy)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 6
Private No

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
Comment by Darek (blablo) - Saturday, 14 January 2017, 01:03 GMT Comment by Andreas Radke (AndyRTR) - Saturday, 14 January 2017, 08:38 GMT Comment by Darek (blablo) - Wednesday, 01 February 2017, 10:15 GMT
Warning: Use at your own risk
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
Comment by Sebastiaan Lokhorst (lonaowna) - Tuesday, 14 February 2017, 17:15 GMT
Can nvidia-libgl also be merged back into nvidia-utils after this is done?
Comment by Laurent Carlier (lordheavy) - Tuesday, 14 February 2017, 17:45 GMT Comment by Sebastiaan Lokhorst (lonaowna) - Tuesday, 14 February 2017, 17:47 GMT
@lordheavy oops, missed that! Thanks for your work, awesome to have GLVND. :)
Comment by Darek (blablo) - Tuesday, 14 February 2017, 19:03 GMT
Please note the glvnd GLES is not supported in mesa (it requires the old (non-GLVND) libGLES*.so* library)
Comment by Laurent Carlier (lordheavy) - Tuesday, 14 February 2017, 19:28 GMT
@blablo

I tried with libGLES libraries from libglvnd and it was working fine. Fedora uses libGLES from libglvnd in their packages.
Comment by Darek (blablo) - Tuesday, 14 February 2017, 19:36 GMT
@ Laurent
Try to run weston and see what happens
Comment by Laurent Carlier (lordheavy) - Tuesday, 14 February 2017, 19:38 GMT
Do you have any bug report or forum post link?
Comment by Darek (blablo) - Tuesday, 14 February 2017, 19:46 GMT
>Do you have any bug report or forum post link?
No. I tested it. :)
Comment by Laurent Carlier (lordheavy) - Tuesday, 14 February 2017, 19:49 GMT
So you should file a bug report and paste the link here :)
Comment by Darek (blablo) - Tuesday, 14 February 2017, 20:10 GMT
Taken from the libglvnd web page
"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
Comment by Laurent Carlier (lordheavy) - Tuesday, 14 February 2017, 20:25 GMT
So mesa package in Fedora is broken, it uses libGLES from libglvnd package instead of mesa ones
See http://pkgs.fedoraproject.org/cgit/rpms/mesa.git/tree/mesa.spec
Comment by Laurent Carlier (lordheavy) - Tuesday, 14 February 2017, 20:28 GMT Comment by Darek (blablo) - Tuesday, 14 February 2017, 21:01 GMT Comment by Darek (blablo) - Wednesday, 15 February 2017, 06:06 GMT
For Fedora users, there is a tests repo
https://copr.fedorainfracloud.org/coprs/kwizart/glvnd/ (Nicolas Chauvet - kwizart)

http://pastebin.com/T5YMSgbR
Comment by Laurent Carlier (lordheavy) - Wednesday, 15 February 2017, 15:34 GMT
And now, do you believe me ?

http://imgur.com/a/W3u3u
Comment by Laurent Carlier (lordheavy) - Wednesday, 15 February 2017, 15:34 GMT
Of course it's on ArchLinux :)
Comment by Darek (blablo) - Wednesday, 15 February 2017, 17:38 GMT
I confirm everything works. Sorry for the confusion, my weston-git pakage wos broken :(

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 :)
Comment by Darek (blablo) - Wednesday, 15 February 2017, 18:27 GMT Comment by Darek (blablo) - Saturday, 18 February 2017, 14:09 GMT
source: https://lists.archlinux.org/pipermail/arch-dev-public/2017-February/028700.html

>* 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.
Comment by Laurent Carlier (lordheavy) - Tuesday, 21 February 2017, 14:53 GMT Comment by Darek (blablo) - Tuesday, 21 February 2017, 15:06 GMT
https://www.archlinux.org/packages/extra/x86_64/nvidia-settings/
edit:
provides/conflicts=('nvidia-utils' 'libgl' 'libgles' 'libegl' 'nvidia-libgl' 'nvidia-340xx-libgl' 'nvidia-settings')
Comment by Darek (blablo) - Wednesday, 22 February 2017, 10:49 GMT Comment by Darek (blablo) - Wednesday, 22 February 2017, 11:05 GMT
@Laurent Carlier or @Doug Newgard
Please change the summary: [libglvnd][nvidia][mesa] Build with GLVND support

Loading...