protonscr

Add option to allow use of CPU adapters (like llvmpipe)

dxvkclosed
doitsujin/dxvk#4121 · opened 2024-07-08 by niansa · updated 2025-02-25 · 8 comments · github
Nniansa 2024-07-08 github

Currently, DXVK simply skips all CPU adapters. This is a good default, but it should be overridable.

Maybe this skip shouldn't occur if DXVK_FILTER_DEVICE_NAME is set.

Ddoitsujin maintainer 2024-07-08 github

This is already possible by setting VK_ICD_FILENAMES to only include CPU implementations, but yeah, allowing them when the device filter is set makes sense too so I'll consider that.

Nniansa 2024-08-11 github

Nope, says Skipping CPU adapter: llvmpipe (LLVM 17.0.6, 256 bits) for me.

BBlisto91 2024-08-11 github

Post the command you used

Ddoitsujin maintainer 2024-08-11 github

Works here so there's probably something wrong on your end.

Nniansa 2024-08-11 github

VK_ICD_FILENAMES=/usr/share/vulkan/icd.d/lvp_icd.i686.json wine game32.exe

BBlisto91 2024-08-15 github

I've tested it locally and it works fine here. Try with VK_DRIVER_FILES instead.

Nniansa 2024-08-17 github

Nope, no difference :-/
Still says this:

warn:  Skipping CPU adapter: llvmpipe (LLVM 17.0.6, 256 bits)
info:  AMD Radeon RX 7900 XT (RADV NAVI31)
...

Edit: Looks like wine ignores these variables altogether? The VK_DRIVER_FILES env variable doesn't seem to make it into the wine environment.

Nniansa 2024-08-17 github

bwrap --bind / / --ro-bind ~/Programs/OSS/mesa/inst/share/vulkan/icd.d /usr/share/vulkan/icd.d wine32 game32.exe

This seems to do the trick.

Launch options