Closed kaanaksit closed 1 year ago
Sure this is not some PRIME weirdness?
You may be right. I removed the .local/share/lutris
folder from my system and also removed lutris
in the process. I have also removed dxvk*
with a sudo apt remove dxvk*
, and rebooted.
After the reboot, I installed lutris
, now I can not even install battle.net
:
Ok, I removed .cache/lutris
and battle.net
is installed. Along the way, installation installed a version of DXVK
. I trust that I am using VKD3D
version 2.9
. After all this I still get the same error:
3363.543:05cc:05d0:err:vkd3d-proton:dxgi_vk_swap_chain_create_surface: Surface is not supported for presentation.
Which dxvk version are you using. You will need at least 2.1 to be used along with vkd3d-proton 2.9
Surface not being supported is more of a problem on the Vulkan end. It means you're not using the right GPU, or NV is trying to use PRIME but it cannot, or something like that.
The log above seems incomplete. There's no mention of which GPU is being used ... There's also two NV GPUs here. It's very plausible that it's picking the NV GPU that is not connected to a display or something, but that would not be a vkd3d-proton bug, but rather DXGI bug if anything.
Which dxvk version are you using. You will need at least 2.1 to be used along with vkd3d-proton 2.9
I am using DXVK
version 2.2
How do I force VKD3D to use the correct GPU?
This is up to DXVK DXGI I think. That's where adapters are enumerated. vkd3d-proton creates a device based on what app queries from DXGI and passes to D3D12DeviceCreate.
dxvk have a device filter env var you could try and see if that helps or not https://github.com/doitsujin/dxvk#device-filter
The game is now working. I changed to the correct lCD loader, and it just worked:
I also set DXVK_FILTER_DEVICE_NAME
correctly on my system using the:
export DXVK_FILTER_DEVICE_NAME="NVIDIA GeForce RTX 2070" && lutris
On a shell, then run lutris
. This fixed all my problems with the game.
Thank you for your responses. I am closing this issue.
I have played Diablo 4 on Lutris in my Linux machine for a month. But since today, it has stopped working with a vkd3d-proton-related error:
3705.787:064c:0650:err:vkd3d-proton:dxgi_vk_swap_chain_create_surface: Surface is not supported for presentation.
I didn't do anything besides updating Diablo 4 as usual through Battle.net and updating my system with
sudo apt update && sudo apt dist-upgrade -y
. Your help is appreciated!System information
Log files