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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Vulkan Support without using VK_ICD_FILENAMES #7

Closed
gardotd426 opened this issue Sep 26, 2020 · 1 comment
Closed

No Vulkan Support without using VK_ICD_FILENAMES #7

gardotd426 opened this issue Sep 26, 2020 · 1 comment

Comments

@gardotd426
Copy link
Contributor

So, I went over to the darkside and got an RTX 3090 (I know. Hush. 馃惛). I used nvidia-all to install the necessary driver, and Vulkan won't work without first specifying VK_ICD_FILENAMES.

I've always used AMD GPUs, but in all my research before going to Nvidia I never saw anywhere where it was stated that you'd have to specify VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json in order to have any vulkan support.

When I put that in /etc/environment, everything works as expected, but surely that's not expected behavior, is it? Everything I've ever seen says all you need to do is install nvidia-utils, the nvidia drivers, and the 64 and 32-bit vulkan icd loader, and you'd have Vulkan support with no other tweaks.

But without specifying nvidia_icd.json, Lutris, Steam, vulkaninfo, vkcube, and all other vulkan stuff says I have no Vulkan support.

vulkaninfo go brrrrrrr with

ERROR: [Loader Message] Code 0 : /usr/lib32/amdvlk32.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /opt/amdgpu-pro/lib/i386-linux-gnu/amdvlk32.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib32/libvulkan_intel.so: wrong ELF class: ELFCLASS32
ERROR: [Loader Message] Code 0 : /usr/lib32/libvulkan_radeon.so: wrong ELF class: ELFCLASS32
ERROR at /build/vulkan-tools/src/Vulkan-Tools-1.2.151/vulkaninfo/vulkaninfo.h:665:vkCreateInstance failed with ERROR_OUT_OF_HOST_MEMORY

I don't know if it's just the newness of the GPU, or what, but like I said, if I actually use VK_ICD_FILENAMES everything works fine and I get 350 fps in Doom Eternal @ 1440 so it's working flawlessly other than this.

If it's intended behavior/not your issue feel free to close

馃惛

@gardotd426
Copy link
Contributor Author

We figured it out. There's a bug in the AMD-developed vulkan drivers (amdvlk and vulkan-amdgpu-pro), which I hadn't gotten around to uninstalling yet after the switch, which causes any vulkan stuff to fail if there's no AMD GPU installed in the system. I'm going to report it to the GPUOpen repo because apparently it's not supposed to do that, it should just skip over them like it does with the intel icds.

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

No branches or pull requests

1 participant