User Tools

Site Tools


notes:wine

This is an old revision of the document!


Wine

Notes

  • Staging 4.6+ includes Esync patches
  • Gallium Nine Standalone can be used for D3D9-to-Gallium
  • D9VK can be used for D3D9-to-Vulkan
  • DXVK can be used for D3D10-11-to-Vulkan
  • Wine has some ability to do D3D12-to-Vulkan via it's own method (libd3dvk?)

Environment Variables

Default

  • STAGING_SHARED_MEMORY=1
  • STAGING_WRITECOPY=1
  • STAGING_RT_PRIORITY_SERVER=90
  • WINEESYNC=1
echo -e "export STAGING_SHARED_MEMORY=1\nexport STAGING_WRITECOPY=1\nexport STAGING_RT_PRIORITY_SERVER=90\nexport WINEESYNC=1" | sudo tee '/etc/profile.d/wine-tweaks.sh' > '/dev/null' && cat '/etc/profile.d/wine-tweaks.sh'
sudo -e '/etc/profile.d/wine-tweaks.sh'

Other

Graphics

PBA_ENABLE=1
mesa_glthread=true
AMD_DEBUG=unsafemath,sisched,gisel,alwayspd
R600_DEBUG=nir,unsafemath
MESA_LOADER_DRIVER_OVERRIDE=iris

RADV

RADV_DEBUG=info,startup
RADV_PERFTEST=cswave32,gewave32,nggc,sam,rt

Other Driver Options

AMD_DEBUG=help glxgears
R600_DEBUG=help glxgears

Error Validation

NIR_VALIDATE=0
MESA_NO_ERROR=1

Logging

WINEDEBUG=all
DXVK_LOG_LEVEL=none

HUD

DXVK_HUD=full
GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;GPU-load,requested-VRAM+VRAM-usage;fps'
GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;cpu4+cpu5+cpu6+cpu7;cpu8+cpu9+cpu10+cpu11;cpu12+cpu13+cpu14+cpu15;GPU-load,requested-VRAM+VRAM-usage;fps'

TODO

# Large Address Aware
export WINE_LARGE_ADDRESS_AWARE='1'
export PROTON_FORCE_LARGE_ADDRESS_AWARE='1'

# Esync and Fsync
export WINEFSYNC='1'
export WINEESYNC='1'

# Mesa
export mesa_glthread='true'
export MESA_NO_ERROR='1'
export VAAPI_MPEG4_ENABLED='1'

# AMD
export RADV_PERFTEST='cswave32,gewave32,pswave32,nggc,sam,rt'
export AMD_DEBUG='w32ge,w32ps,w32cs,nggc,dpbb,dfsm'

# NVIDIA
export __GL_THREADED_OPTIMIZATIONS='1'

# DXVK
export DXVK_ASYNC='1'

# VKD3D
export VKD3D_CONFIG='dxr,dxr11'

# Logging
export DXVK_LOG_LEVEL='none'
export WINEDEBUG='-all'
/var/www/wiki/data/attic/notes/wine.1653342353.txt.gz · Last modified: 2022/05/23 17:45 by Sean Rhone