added DXVK_HDR support for Wayland
This commit is contained in:
@ -4225,11 +4225,15 @@ start_portwine () {
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ $PW_USE_NATIVE_WAYLAND == "1" ]] ; then
|
if check_wayland_session \
|
||||||
|
&& [[ $PW_USE_NATIVE_WAYLAND == "1" || $PW_USE_DXVK_HDR == "1" ]]
|
||||||
|
then
|
||||||
|
[[ $PW_USE_DXVK_HDR == "1" ]] && export DXVK_HDR="1"
|
||||||
export WINE_WAYLAND_HACKS="1"
|
export WINE_WAYLAND_HACKS="1"
|
||||||
var_winedlloverride_update "winex11.drv=d;winewayland.drv=b"
|
var_winedlloverride_update "winex11.drv=d;winewayland.drv=b"
|
||||||
get_and_set_reg_file --add 'Software\Wine\Drivers' 'Graphics' 'REG_SZ' "x11,wayland" "user"
|
get_and_set_reg_file --add 'Software\Wine\Drivers' 'Graphics' 'REG_SZ' "x11,wayland" "user"
|
||||||
else
|
else
|
||||||
|
unset WINE_WAYLAND_HACKS DXVK_HDR
|
||||||
get_and_set_reg_file --delete 'Software\Wine\Drivers' 'Graphics'
|
get_and_set_reg_file --delete 'Software\Wine\Drivers' 'Graphics'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -5185,13 +5189,15 @@ gui_edit_db () {
|
|||||||
PW_WINE_FULLSCREEN_FSR PW_HIDE_NVIDIA_GPU PW_VIRTUAL_DESKTOP PW_USE_TERMINAL PW_GUI_DISABLED_CS PW_USE_GAMEMODE
|
PW_WINE_FULLSCREEN_FSR PW_HIDE_NVIDIA_GPU PW_VIRTUAL_DESKTOP PW_USE_TERMINAL PW_GUI_DISABLED_CS PW_USE_GAMEMODE
|
||||||
PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME PW_REDUCE_PULSE_LATENCY PW_USE_US_LAYOUT PW_USE_GSTREAMER
|
PW_USE_D3D_EXTRAS PW_FIX_VIDEO_IN_GAME PW_REDUCE_PULSE_LATENCY PW_USE_US_LAYOUT PW_USE_GSTREAMER
|
||||||
PW_USE_SHADER_CACHE PW_USE_WINE_DXGI PW_USE_EAC_AND_BE PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE
|
PW_USE_SHADER_CACHE PW_USE_WINE_DXGI PW_USE_EAC_AND_BE PW_USE_SYSTEM_VK_LAYERS PW_USE_OBS_VKCAPTURE
|
||||||
PW_DISABLE_COMPOSITING PW_USE_RUNTIME PW_DINPUT_PROTOCOL PW_USE_NATIVE_WAYLAND PW_USE_GALLIUM_ZINK
|
PW_DISABLE_COMPOSITING PW_USE_RUNTIME PW_DINPUT_PROTOCOL PW_USE_GALLIUM_ZINK PW_USE_GALLIUM_NINE
|
||||||
PW_USE_GALLIUM_NINE PW_USE_WINED3D_VULKAN PW_USE_SUPPLIED_DXVK_VKD3D
|
PW_USE_WINED3D_VULKAN PW_USE_SUPPLIED_DXVK_VKD3D PW_USE_NATIVE_WAYLAND PW_USE_DXVK_HDR
|
||||||
)
|
)
|
||||||
|
|
||||||
if check_wayland_session
|
if check_wayland_session
|
||||||
then rm_from_array "PW_EDIT_DB_LIST" PW_USE_US_LAYOUT
|
then rm_from_array "PW_EDIT_DB_LIST" PW_USE_US_LAYOUT
|
||||||
else rm_from_array "PW_EDIT_DB_LIST" PW_USE_NATIVE_WAYLAND
|
else
|
||||||
|
rm_from_array "PW_EDIT_DB_LIST" PW_USE_NATIVE_WAYLAND
|
||||||
|
rm_from_array "PW_EDIT_DB_LIST" PW_USE_DXVK_HDR
|
||||||
fi
|
fi
|
||||||
|
|
||||||
check_flatpak && rm_from_array "PW_EDIT_DB_LIST" PW_USE_RUNTIME
|
check_flatpak && rm_from_array "PW_EDIT_DB_LIST" PW_USE_RUNTIME
|
||||||
@ -5238,7 +5244,8 @@ gui_edit_db () {
|
|||||||
PW_DISABLE_COMPOSITING_INFO=${translations[Disable desktop compositing (effects). It often improves performance.]}
|
PW_DISABLE_COMPOSITING_INFO=${translations[Disable desktop compositing (effects). It often improves performance.]}
|
||||||
PW_USE_RUNTIME_INFO=${translations[Use container launch mode (It is recommended not to change the value)]}
|
PW_USE_RUNTIME_INFO=${translations[Use container launch mode (It is recommended not to change the value)]}
|
||||||
PW_DINPUT_PROTOCOL_INFO=${translations[Force use DirectInput protocol instead of XInput]}
|
PW_DINPUT_PROTOCOL_INFO=${translations[Force use DirectInput protocol instead of XInput]}
|
||||||
PW_USE_NATIVE_WAYLAND_INFO=${translations[Enable experemental native Wayland support (need special wine build to work)]}
|
PW_USE_NATIVE_WAYLAND_INFO=${translations[Enable experemental native Wayland support]}
|
||||||
|
PW_USE_DXVK_HDR_INFO=${translations[Enable HDR settings in games with native Wayland]}
|
||||||
PW_USE_GALLIUM_ZINK_INFO=${translations[Use Gallium Zink (OpenGL driver is implemented via Vulkan)]}
|
PW_USE_GALLIUM_ZINK_INFO=${translations[Use Gallium Zink (OpenGL driver is implemented via Vulkan)]}
|
||||||
PW_USE_GALLIUM_NINE_INFO=${translations[Use Gallium Nine (native DirectX 9 for MESA)]}
|
PW_USE_GALLIUM_NINE_INFO=${translations[Use Gallium Nine (native DirectX 9 for MESA)]}
|
||||||
PW_USE_WINED3D_VULKAN_INFO=${translations[Instead of DXVK, use WineD3D vulkan (Damavand). Experimental function.]}
|
PW_USE_WINED3D_VULKAN_INFO=${translations[Instead of DXVK, use WineD3D vulkan (Damavand). Experimental function.]}
|
||||||
|
Reference in New Issue
Block a user