minor fix
This commit is contained in:
parent
3b7656e2e4
commit
996fbfdd45
@ -773,7 +773,7 @@ create_new_dir "${PORT_WINE_TMP_PATH}"/mono
|
|||||||
export PW_VULKAN_DIR="${PORT_WINE_TMP_PATH}/VULKAN"
|
export PW_VULKAN_DIR="${PORT_WINE_TMP_PATH}/VULKAN"
|
||||||
create_new_dir "${PW_VULKAN_DIR}"
|
create_new_dir "${PW_VULKAN_DIR}"
|
||||||
|
|
||||||
export VULKAN_API_DRIVER_VERSION="$(vulkaninfo 2>/dev/null | grep "api" | head -n 1 | awk '{print $3}')"
|
export VULKAN_API_DRIVER_VERSION="$(vulkaninfo --summary 2>/dev/null | grep "api" | head -n 1 | awk '{print $3}')"
|
||||||
export VULKAN_DRIVER_NAME="$(vulkaninfo --summary 2>/dev/null | grep driverName | awk '{print$3}' | head -1)"
|
export VULKAN_DRIVER_NAME="$(vulkaninfo --summary 2>/dev/null | grep driverName | awk '{print$3}' | head -1)"
|
||||||
export LSPCI_VGA="$(lspci -k | grep -E 'VGA|3D' | tr -d '\n')"
|
export LSPCI_VGA="$(lspci -k | grep -E 'VGA|3D' | tr -d '\n')"
|
||||||
|
|
||||||
|
@ -28,9 +28,8 @@ if [[ "${XDG_SESSION_TYPE}" = "wayland" ]] && [[ ! -f "${PORT_WINE_TMP_PATH}/che
|
|||||||
echo "1" > "${PORT_WINE_TMP_PATH}/check_wayland"
|
echo "1" > "${PORT_WINE_TMP_PATH}/check_wayland"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z "$VULKAN_DRIVER_NAME" ]] || [[ "$VULKAN_DRIVER_NAME" =~ "llvmpipe" ]] || [[ ! -f "${PORT_WINE_TMP_PATH}/check_vulkan" ]] ; then
|
if [[ -z "$VULKAN_DRIVER_NAME" ]] || [[ "$VULKAN_DRIVER_NAME" == "llvmpipe" ]] ; then
|
||||||
zenity_info "Attention working version of vulkan not detected!\nIt is recommended to run games in OpenGL (low performance possible)!"
|
zenity_info "Attention working version of vulkan not detected!\nIt is recommended to run games in OpenGL (low performance possible)!"
|
||||||
echo "1" > "${PORT_WINE_TMP_PATH}/check_vulkan"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_main_gui_size" ]] && [[ ! -z "$(cat ${PORT_WINE_TMP_PATH}/tmp_main_gui_size)" ]] ; then
|
if [[ -f "${PORT_WINE_TMP_PATH}/tmp_main_gui_size" ]] && [[ ! -z "$(cat ${PORT_WINE_TMP_PATH}/tmp_main_gui_size)" ]] ; then
|
||||||
@ -563,10 +562,10 @@ do
|
|||||||
export DIST_ADD_TO_GUI="${DIST_ADD_TO_GUI}!${DAIG}"
|
export DIST_ADD_TO_GUI="${DIST_ADD_TO_GUI}!${DAIG}"
|
||||||
done
|
done
|
||||||
|
|
||||||
if [[ $VULKAN_API_DRIVER_VERSION == 1.[1-2].* ]]
|
# if [[ $VULKAN_API_DRIVER_VERSION == 1.[1-2].* ]]
|
||||||
then check_variables PW_VULKAN_USE "1"
|
# then check_variables PW_VULKAN_USE "1"
|
||||||
else check_variables PW_VULKAN_USE "2"
|
# else check_variables PW_VULKAN_USE "2"
|
||||||
fi
|
# fi
|
||||||
check_nvidia_rtx && check_variables PW_VULKAN_USE "2"
|
check_nvidia_rtx && check_variables PW_VULKAN_USE "2"
|
||||||
|
|
||||||
case "${PW_VULKAN_USE}" in
|
case "${PW_VULKAN_USE}" in
|
||||||
|
Loading…
Reference in New Issue
Block a user