FreeSync working for native games, but not in wine
Hello Nicholas, the patches look really promising. I'm trying https://patchwork.freedesktop.org/project/dri-devel/list/?submitter=17756 and https://patchwork.freedesktop.org/project/mesa/list/?submitter=17756 (both v5); After applying all related patches to latest drm-next-wip-4.21 kernel/mesa-git and getting your xf86-video-amdgpu variable-refresh-present branch I enabled the options you refer in the docs. I get that on logs: [ 7.223] () AMDGPU(0): Option "VariableRefresh" "true" [ 7.530] () AMDGPU(0): VariableRefresh: enabled
driconf GUI now shows the new adaptive_sync which was true by default as expected. xrandr --props shows vrr_capable: 1 as expected. I booted with drm.debug=0x04 to get the useful VRR messages on dmesg and after logging into KDE with compositor disabled opened some native games, and all worked really smooth (unigine-valley, Stellaris, Civ 6 and others) and triggered the Freesync mark on my monitor OSD along with dmesg like this: [ 2527.551130] [drm:update_freesync_state_on_stream.isra.32 [amdgpu]] VRR packet update: crtc=44 enabled=1 state=3 [ 2527.551251] [drm:update_freesync_state_on_stream.isra.32 [amdgpu]] VRR timing update: crtc=44 min=1089 max=1865
Wine games though, either fullscreen or windowed fullscreen wont enable it even after forcing adaptive_sync=true through env vars (monitor OSD confirms its disabled) and I get the respective output: [ 2939.077949] [drm:update_freesync_state_on_stream.isra.32 [amdgpu]] VRR packet update: crtc=44 enabled=0 state=2 [ 2939.078001] [drm:update_freesync_state_on_stream.isra.32 [amdgpu]] VRR timing update: crtc=44 min=1125 max=1125
Is there anything I could try to make it work in wine? Or is it not suppose to work there yet for some reason? I didnt see it in the blacklists provided. This is awesome progress, thanks a lot!