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

DRI_PRIME=1 equivilant for vulkan games #2870

Closed
2 tasks done
kenthinson opened this issue Jul 10, 2019 · 9 comments
Closed
2 tasks done

DRI_PRIME=1 equivilant for vulkan games #2870

kenthinson opened this issue Jul 10, 2019 · 9 comments

Comments

@kenthinson
Copy link

kenthinson commented Jul 10, 2019

Feature Request

I confirm:

  • that I haven't found another request for this feature.
  • that I have checked whether there are updates for my system available that
    contain this feature already.

Description

Ability to hide cards from vulkan or somehow specfiy what one should be used by the game. Similar to DRI_PRIME=1.

Justification [optional]

Example. Running a Asus tuf book with Vega / RX 560.
Doom 2016 running with open-gl mode. I can simply launch steam with DRI_PRIME=1 to set the RX 560 as the rendering card. However If I switch the game over to Vulkan mode then DRI_PRIME=1 is ignored and the game runs on the vega graphics. I'm assuming that the game can see both cards and is just selecting the incorrect one? However I have no way to confirm this.

Risks [optional]

None known.

@kenthinson
Copy link
Author

closing as i found the Primus-VK project.

@kenthinson
Copy link
Author

Reopening as Primus-VK seems to be a Nvidia only solution.

@kisak-valve
Copy link
Member

Hello @kenthinson, it sounds like you're looking for DXVK_FILTER_DEVICE_NAME to limit what GPUs are used.

Otherwise, this should be a feature request for manipulating the order GPUs are listed in vkEnumeratePhysicalDevices in Vulkan's loader rather than something that should be implemented in Proton.

@kenthinson
Copy link
Author

kenthinson commented Jul 11, 2019

@kisak-valve Doom uses vulkan native not DXVK. I figured that the wine layer would be responsible for what order the graphics cards are presented to the exe no? For example maybe we dont want to change the default order for all apps just the game in question.

@jozefkucia
Copy link
Contributor

You can use VK_ICD_FILENAMES, e.g. VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/nvidia_icd.json.

@kisak-valve
Copy link
Member

kisak-valve commented Jul 11, 2019

It should be noted that while VK_ICD_FILENAMES is effective in limiting the enumerated videocard to a driver vendor, it doesn't help with forcing the vulkan loader to pick between video cards of the same brand like the AMD RX560 / Vega in the example.

@kenthinson
Copy link
Author

I opened a issue with the vulkan team here is the link in case anyone with the same issue happens on this via google.

KhronosGroup/Vulkan-Loader#202

@felixdoerre
Copy link

Hi @kenthinson
I don't see any reason why primus_vk should now work on an amd laptop, however I don't have any such hardware to try to understand how the amd-driver behaves and how one could get this working. The NVIDIA-Driver hack (https://github.com/felixdoerre/primus_vk/blob/master/nv_vulkan_wrapper.cpp) is obviously not needed but maybe, the AMD driver behaves correctly from the start.

@juanro49
Copy link

I have same problem. I found this tool https://github.com/aejsmith/vkdevicechooser but I have a compile error

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

5 participants