You are not logged in.

#1 2021-04-18 14:52:26

Shotty_Man
Member
Registered: 2021-04-18
Posts: 6

Vulkan in steam games does not want to use the dgpu.

It seems that Vulkan uses my IGPU instead of my DgGPU. I have tried launch parameters like MESA_VK_DEVICE_SELECT=1002:67df NODEVICE_SELECT=1 DRI_PRIME=1. Specifically I have a 2400g 580 16gbs ram and arch is installed in a 128gb SSD. I have found out that Vulkan is trying to use a AMD GPU switch layer or something though I am not sure how I could change the GPU being used from the Vega 11 to the 580. Specifically speaking I am trying to launch steam games though i haven't tried anything else other than steam games such as Lutris though OpenGL games utilize the right GPU which confuses me even more because Vulkan should be using the same GPU. What is more confusing is that vkcube uses the 580 but the games I play don't for some reason which muddy thing further.

I have also open up Vulkaninfo and it shows that the Vega 11 is GPU 0 and the 580 is GPU 1 though that still doesn't explain why vkcube uses it and not any of the Vulkan games. There is also a switchable graphics layer though I don't know exactly what that does, all Vulkan games I ran (granted only 2 games and one was under dxvk and the other seemingly native) seem to run off the IGPU according to mangohud and they have horrible framerate and in the case of the native vulkan game seem to lack vram which would make sense because of the 2gb that the igpu takes from my ram.

Offline

#2 2021-04-19 11:26:13

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,350

Re: Vulkan in steam games does not want to use the dgpu.

For clarity : iGPU and dGPU are both amd chipsets ?

Please post the output of

$ pacman -Qs vulkan
$ MESA_VK_DEVICE_SELECT=list vulkaninfo

Last edited by Lone_Wolf (2021-04-19 11:26:47)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2021-04-19 20:06:59

Shotty_Man
Member
Registered: 2021-04-18
Posts: 6

Re: Vulkan in steam games does not want to use the dgpu.

Here is the output. Also yes they are both amd one being vega 11 and the other a 580 4gb.

https://pastebin.com/b6fujdzR

Offline

#4 2021-04-20 09:55:25

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,350

Re: Vulkan in steam games does not want to use the dgpu.

local/lib32-amdvlk 2021.Q2.1-1
local/lib32-vulkan-radeon 21.0.2-1
local/vulkan-radeon 21.0.2-1

You're missing the 64-bit amdvlk from aur , add it for now.

Check https://wiki.archlinux.org/index.php/Vu … kan_driver and test whether amdvlk or vulkan-radeon works better for a specific game.
(There is a chance you'll need/want to have both available ).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2021-04-20 11:22:06

Shotty_Man
Member
Registered: 2021-04-18
Posts: 6

Re: Vulkan in steam games does not want to use the dgpu.

The problem is that amdvlk breaks dxvlk and makes my igpus vulkan perf worse. I'll try to uninstall and reinstall all of the vulkan drivers to see if that works though.

Offline

#6 2021-04-22 19:46:16

Shotty_Man
Member
Registered: 2021-04-18
Posts: 6

Re: Vulkan in steam games does not want to use the dgpu.

Lone_Wolf wrote:
local/lib32-amdvlk 2021.Q2.1-1
local/lib32-vulkan-radeon 21.0.2-1
local/vulkan-radeon 21.0.2-1

You're missing the 64-bit amdvlk from aur , add it for now.

Check https://wiki.archlinux.org/index.php/Vu … kan_driver and test whether amdvlk or vulkan-radeon works better for a specific game.
(There is a chance you'll need/want to have both available ).

It still crashes my game.

Offline

#7 2021-04-22 20:41:40

Shotty_Man
Member
Registered: 2021-04-18
Posts: 6

Re: Vulkan in steam games does not want to use the dgpu.

I think the issue is with my xorg config because I think it is using my iGPU instead of my dGPU.

Offline

#8 2021-04-23 10:03:47

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,350

Re: Vulkan in steam games does not want to use the dgpu.

For clarity :

if you start the game with

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.i686.json:/usr/share/vulkan/icd.d/radeon_icd.x86_64.json some-game

so it has to use vulkan-radeon does it still crash ?

Note that if the game needs something like dxvlk-bin you should make sure that also uses the same vulkan driver.

X and vulkan have their own methods to determine which driver / card is used .

please post

$ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/radeon_icd.x86_64.json vulkaninfo --summary
$ VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/amd_icd64.json vulkaninfo --summary

Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#9 2021-04-23 11:47:26

Shotty_Man
Member
Registered: 2021-04-18
Posts: 6

Re: Vulkan in steam games does not want to use the dgpu.

I think I might have solved it using this thing https://github.com/aejsmith/vkdevicechooser

Offline

#10 2021-04-24 10:25:50

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,350

Re: Vulkan in steam games does not want to use the dgpu.

That functionality has been present in mesa since version 20.1 .
Archlinux devs added it as https://archlinux.org/packages/extra/x8 … sa-layers/ in may 2020 .

Once you understood how to get a game to use a specific vulkan driver from command line ,
I would have asked you to install vulkan-mesa-layers and re-run MESA_VK_DEVICE_SELECT=list vulkaninfo.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB