Bug 23221 - nvidia-current is packaged without GLVND libs and doesn't provide proper Vulkan ICD
Summary: nvidia-current is packaged without GLVND libs and doesn't provide proper Vulk...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 6
Hardware: All Linux
Priority: Normal major
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2018-06-23 12:55 CEST by Oleg Bosis
Modified: 2018-07-25 19:28 CEST (History)
3 users (show)

See Also:
Source RPM: nvidia-current-390.59-1.mga6.nonfree.src.rpm
CVE:
Status comment:


Attachments
Patch for the spec file (4.90 KB, patch)
2018-06-23 12:57 CEST, Oleg Bosis
Details | Diff

Description Oleg Bosis 2018-06-23 12:55:59 CEST
Description of problem:

Yesterday I've bought F1 2017 game in steam and was not able to run it on Mageia 6. This game uses Vulkan API on Linux and doesn't work without it.

It seems that:
1. Current nvidia driver uses GLVND libs to implement some portions of Vulkan API od the game uses them for internal tasks and doesn't run without them (can not detect versions of libraries and APIs).

2. Vulkan API requires proper ICD file (not template that is currently provided with the driver package).

After some googling and comparing megeia nvidia-current package with other distributions pakages (Fedora, Debian) I've made required changes to mageia's spec file that fixed all the problems with Vulkan API and the game. The patch is attached.

I've tested my version of nvidia-current package and have not found any side effects on xorg installation (KDE Plasma5, some different Steam native and win32/win64 games with WINE).

Have not tested Wayland.

Version-Release number of selected component (if applicable):
nvidia-current-390.59-1.mga6

How reproducible:
always


Steps to Reproduce:

You need F1 2017 commercial game to reproduce all the problems but some of them can be seen using check-libglvnd-install.sh script that comes with nvidia driver and also using vulkaninfo program from VulkanSDK.

The proper output of the check-libglvnd-install.sh should look like this:
[code]
$ ./check-libglvnd-install.sh
Checking for libglvnd installation.
Checking libGLdispatch...
Checking libGLdispatch dispatch table
Checking call through libGLdispatch
All OK
libGLdispatch is OK
Checking for libGLX
libGLX is OK
Checking for libEGL
libEGL is OK
Checking entrypoint library libOpenGL.so.0
Checking call through libGLdispatch
Checking call through library libOpenGL.so.0
All OK
Entrypoint library libOpenGL.so.0 is OK
Checking entrypoint library libGL.so.1
Checking call through libGLdispatch
Checking call through library libGL.so.1
All OK
Entrypoint library libGL.so.1 is OK
libglvnd appears to be installed.
[/code]

vulkaninfo program should properly display all the info about API Vulkan and should not display any errors.
Comment 1 Oleg Bosis 2018-06-23 12:57:46 CEST
Created attachment 10248 [details]
Patch for the spec file

Note: additionally the patch increases version of nvidia driver to current 390.67.

CC: (none) => olelukoie

Comment 2 Marja Van Waes 2018-06-25 17:08:39 CEST
Assigning to our kernel & drivers maintainers, CC'ing our registered nvidia-current maintainer.

(In reply to Oleg Bosis from comment #1)
> Created attachment 10248 [details]
> Patch for the spec file
> 
> Note: additionally the patch increases version of nvidia driver to current
> 390.67.

That might mean it can only be allowed in the backports repo, depending on whether only bugs were fixed between 390.59 and 390.67, or also new shiny features added
https://wiki.mageia.org/en/Updates_policy#Version_Policy

This looks like bug fixes only to me http://www.nvidia.com/Download/driverResults.aspx/134859/en-us ;-)

Keywords: (none) => PATCH
Assignee: bugsquad => kernel
CC: (none) => marja11

Comment 3 Thomas Backlund 2018-06-25 19:09:56 CEST
We wont enable glvnd by default in mga6 updates as its untested feature change ...

I have planned to update the nVidia driver to 390.67+ but I'm currently waiting for a nVidia bugfix that should land soon-ish that I want to have at the same time...

After that updates will get the new version, and backports a glvnd enabled setup...

For Mga7 we will try to provide glvnd by default...

CC: (none) => tmb

Comment 4 Thomas Backlund 2018-07-17 12:48:55 CEST
I've just pushed a  nvidia-current-390.77-1.1.mga6 to mga6 nonfree updates testing that fixes the Vulkan ICD to use the non-glvnd driver, and tested on a GTX107+, where atleast vulkaninfo seems happy about it.
Comment 5 Oleg Bosis 2018-07-25 19:28:06 CEST
I've tested the new version of driver and it seems to work properly with both vulkaninfo and F1 2017 game. Also tested vulkan-cube and it also works without any problems.

Thank you!

Resolution: (none) => FIXED
Status: NEW => RESOLVED


Note You need to log in before you can comment on or make changes to this bug.