Skip to content

steam/fhsenv: re-order VK_ICD files - #130984

Closed
jonringer wants to merge 1 commit into
NixOS:masterfrom
jonringer:steam-vulkan-fix-icd
Closed

jonringer wants to merge 1 commit into
NixOS:masterfrom
jonringer:steam-vulkan-fix-icd

Conversation

@jonringer

@jonringer jonringer commented Jul 21, 2021 •

Copy link
Copy Markdown
Contributor
Motivation for this change

Order VK_ICD_FILENAMES by preferring more specific drivers
before generic ones.

overlaps with: #126435
may solve: #126428

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • 21.11 Release Notes (or backporting 21.05 Relase notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

@github-actions github-actions Bot added the 6.topic: steam Steam game store/launcher (store.steampowered.com) label Jul 21, 2021
@ofborg ofborg Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. labels Jul 21, 2021
Comment thread pkgs/games/steam/fhsenv.nix Resolved
Comment thread pkgs/games/steam/fhsenv.nix Resolved
Comment thread pkgs/games/steam/fhsenv.nix Resolved
Order VK_ICD_FILENAMES by preferring more specific drivers
before generic ones.
@SuperSandro2000

Copy link
Copy Markdown
Member

I can't test if the change actually works but it does not look to bad.

@compactcode

Copy link
Copy Markdown

I believe I'm hitting this issue and would like to test this fix out. I'm new to testing out nixpkgs patches, would you be able to point me toward some info on how to check out and test this patch on my local nixos(unstable) machine?

@TredwellGit

Copy link
Copy Markdown
Member

@compactcode:

git clone https://github.com/NixOS/nixpkgs.git
cd nixpkgs
git fetch origin pull/130984/head:steam-vulkan-fix-icd
git checkout steam-vulkan-fix-icd
git rebase origin/master
nix-shell -I nixpkgs=. -p steam --run steam

@jonringer

Copy link
Copy Markdown
Contributor Author

I should probably check in /run/opengl-drivers/ first, as that will likely contain nvidia drivers as well, the existing ICD files that get mounted at /usr/share/vulkan/ are coming from the mesa package, which wouldn't include them

@jonringer

Copy link
Copy Markdown
Contributor Author

by default, /usr/share/vulkan/icd.d/ will always be populated with mesa, other PR should be preferred

@jonringer

Copy link
Copy Markdown
Contributor Author

I'm not a bug fan of his, going to go with #135024 approach

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: steam Steam game store/launcher (store.steampowered.com) 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants