Reg. Adaptive Sync feature in xf86-video-amdgpu

Michel Dänzer michel at daenzer.net
Mon Apr 20 16:15:49 UTC 2020


On 2020-04-20 6:04 p.m., uday kiran pichika wrote:
> 
> Even in amdgpu_present_flip(), there is a check
> for amdgpu_window_has_variable_refresh() which actually checks whether
> window has a variable_refresh property set from the MESA or not ? this
> check is failing in my case and never calls amdgpu_present_set_screen_vrr.

This should be set by

	get_window_priv(window)->variable_refresh = variable_refresh;

in amdgpu_vrr_property_update.


> Is there any way that i can check whether MESA is setting this property ?
> 
> To my understanding, MESA will set this property to true or false based on
> whether application is running in Full screen mode or in normal mode.

Mesa always sets the window property by default, unless the driconf
option "adaptive_sync" is disabled, e.g. via the application blacklist
in /usr/share/drirc.d/00-mesa-defaults.conf (mostly for compositors /
browsers / video players).


-- 
Earthling Michel Dänzer               |               https://redhat.com
Libre software enthusiast             |             Mesa and X developer


More information about the amd-gfx mailing list