Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

amdvlk 32bit #93027

Closed
zeratax opened this issue Jul 12, 2020 · 1 comment · Fixed by #97976
Closed

amdvlk 32bit #93027

zeratax opened this issue Jul 12, 2020 · 1 comment · Fixed by #97976

Comments

@zeratax
Copy link
Contributor

zeratax commented Jul 12, 2020

Project description
#82305 introduced amdvlk to nixos already, but afaict this only works with 64bit application, but since a lot of especially games are still 32bit it really would be nice to also be able to run those with amdvlk.

I currently have this:

{
environment.variables.VK_ICD_FILENAMES = "${pkgs.amdvlk}/share/vulkan/icd.d/amd_icd64.json:/run/opengl-driver-32/share/vulkan/icd.d/radeon_icd.i686.json";
}

In my nixos configuration to make sure that if possible amdvlk is used but also to make sure 32bit applications can still run

Metadata

should be the same

@Flakebi
Copy link
Member

Flakebi commented Jul 21, 2020

What would be the right way to do this with nix?

The possibilities I see are:

  1. Build with -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32
  2. Use the nix i686 toolchain (working amdvlk here: Flakebi@71f08eb, can be used as pkgsi686Linux.amdvlk)

A disadvantage of 2. is that it does not support lto.

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

Successfully merging a pull request may close this issue.

2 participants