protonscr

[BUG] Running SteamVR on different GPU than VR application

steamvropen bug
ValveSoftware/SteamVR-for-Linux#241 · opened 2019-09-04 by ChristophHaag · updated 2020-06-02 · 3 comments · github
CChristophHaag 2019-09-04 github

With the current SteamVR beta 1.7.12 and mesa git, vrcompositor is (almost) able to run comfortably on igpus, at least with the resolution of the first Vive.
I'm trying it on a laptop with a 3550H with "Vega 8" Picasso igpu and an RX 560X dgpu.

Running steamvr and hellovr_opengl both on the igpu works of course, but when I run hellovr_opengl on the dgpu with DRI_PRIME=1 hellovr_opengl, the output in SteamVR is corrupted:
corrupt

R600_DEBUG=notiling has no effect and the same corruption happens when running hellovr_vulkan on the dgpu (using the device-select vulkan layer).

Hypothesis: SteamVR creates a vkImage and exports it with external memory, but uses optimal tiling which breaks importing a texture from another GPU (even though both are AMD GPUs).
It would be great if steamvr could automatically detect if the client vr application runs on another GPU and use linear buffers in this case. If that's not possible, a setting or environment variable would be a good start.

Rrstrube 2019-09-06 github

Have you double checked your VK_ICD_FILENAMES environment variable to make sure it's pointing to the correct JSON file. For example you could add VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/xxx.json to point to the correct GPU. You could also simply backup the other .json files (for your intel iGPU, etc.) to another directory location so Steam VR only has one choice for GPU.

I had to do this for Steam VR to work properly, it was accidentally selecting the wrong GPU (in my case my iGPU) and therefore wasn't working correctly.

SSpookySkeletons 2020-04-12 github

Intel + AMD workstation laptop here.
Same issue, framebuffer is completely garbled when using my DRI_PRIME offload. I can provide some info if it helps.

Zzeusin 2020-06-02 github

Running a desktop with dual-seats ( AMD 7770 + AMD 480 ) with similar problems with HTC vive when using offloading.

Native and proton non-vr games working fine setting DRI_PRIME=1

Nothing extracted yet.