update lang and the choice of nvidia graphics card

This commit is contained in:
Mikhail Tergoev
2024-01-18 20:52:53 +03:00
parent d4b976f2b2
commit 6c08c16ff6
5 changed files with 34 additions and 5 deletions

View File

@ -214,6 +214,11 @@ start_portwine () {
if [[ "${PW_GPU_USE}" != "disabled" ]] ; then
export DXVK_FILTER_DEVICE_NAME="${PW_GPU_USE}"
export VKD3D_FILTER_DEVICE_NAME="${PW_GPU_USE}"
if echo "${PW_GPU_USE}" | grep -i nvidia &>/dev/null ; then
if [[ -f "/usr/share/vulkan/icd.d/nvidia_icd.json" ]] ; then
export VK_ICD_FILENAMES="/usr/share/vulkan/icd.d/nvidia_icd.json"
fi
fi
fi
# if [[ "${PW_AMD_VULKAN_USE}" == "amdvlk" ]] ; then