Bug 29563 - Nvidia: set the VK_ICD_FILENAMES variable
Summary: Nvidia: set the VK_ICD_FILENAMES variable
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Kernel and Drivers maintainers
QA Contact:
URL: https://forums.mageia.org/en/viewtopi...
Whiteboard: MGA8TOO
Keywords:
Depends on:
Blocks:
 
Reported: 2021-10-18 22:55 CEST by Morgan Leijström
Modified: 2023-06-04 16:44 CEST (History)
2 users (show)

See Also:
Source RPM: nvidia-current
CVE:
Status comment: Entered in Wiki


Attachments

Description Morgan Leijström 2021-10-18 22:55:34 CEST
Plain copy from QA maillist:
-----------8<------------------


On Thu, 14 Oct 2021 03:18:58 -0400, Morgan Leijström <fri@tribun.eu> wrote:
> Spotted this in forum
> A user had Warthunder working, but it broke after updates.
> User found he need to
>    export VK_ICD_FILENAMES=/etc/vulkan/icd.d/nvidia_icd.json
> https://forums.mageia.org/en/viewtopic.php?f=23&t=14308&p=84110#p84110
> Should we open a bug and implement this?

# urpmf nvidia_icd.json|sort -u
x11-driver-video-nvidia390:/etc/vulkan/icd.d/nvidia_icd.json
x11-driver-video-nvidia-current:/etc/vulkan/icd.d/nvidia_icd.json

As those are the only packages that supply the file, an enhancement bug report
to have them set the VK_ICD_FILENAMES variable would be appropriate. As the
program Warthunder is not a Mageia package, all we can test for is that the
variable is set, not whether or not it fixes that program.

Regards, Dave Hodgins 


----------->8-------------

For testing, we can ask that user on forum if he wants to try.
I link in that thread to this bug.
Morgan Leijström 2021-10-18 22:58:09 CEST

Assignee: bugsquad => kernel
CC: (none) => davidwhodgins

Morgan Leijström 2021-10-18 23:04:57 CEST

Severity: normal => enhancement
Whiteboard: (none) => MGA8TOO
Version: 8 => Cauldron

Comment 1 Thomas Backlund 2021-10-18 23:23:12 CEST
setting VK_ICD_FILENAMES by default to the nVidia icd would force it on every user with nVidia packages installed, even if they might want to use the mesa ones...
Comment 2 Morgan Leijström 2021-10-18 23:36:25 CEST
Something seem to have changed, as when user reverted updates, it worked.

So we have a system change of policy/preference?

How do users normally choose, and how will they know they have a choice?


---

Regardless of solution here, it feels like these things should get noted in our wiki, like here: https://wiki.mageia.org/en/Setup_the_graphical_server

Also, I believe that page should get updated and revised by someone who knows these things well. (not me) ...
Comment 3 Morgan Leijström 2021-10-19 18:47:05 CEST
I added section

https://wiki.mageia.org/en/Setup_the_graphical_server#Forcing_Nvidia_icd

@tmb, Feel free to close this bug if you agree.

Status comment: (none) => Entered in Wiki

Comment 4 Giuseppe Ghibò 2021-10-19 22:19:07 CEST
What is strange is all this subject is that according to what reported in the forum, under mesa 21.1 everything was working without setting any env var, so I wonder whether in passing from mesa 21.1 to mesa 21.2 some hardcoded path for ICD files has been changed or get lost. Second, apart the game Warthunder, does this happens on any game using Vulkan?

CC: (none) => ghibomgx

Comment 5 Morgan Leijström 2023-06-04 16:44:52 CEST
User now tell similar is needed for Intel

https://forums.mageia.org/en/viewtopic.php?f=15&t=14946&p=87756#p87756

For now, added to wiki
https://wiki.mageia.org/en/Setup_the_graphical_server#Forcing_icd

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