Bug 109392

Summary: modesetting driver + amdgpu.dc=1 always enforces vsync
Product: xorg Reporter: tempel.julian
Component: Driver/AMDgpuAssignee: xf86-video-ati maintainers <xorg-driver-ati>
Status: RESOLVED NOTOURBUG QA Contact: Xorg Project Team <xorg-team>
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
dmesg log
none
xorg log none

Description tempel.julian 2019-01-19 13:02:03 UTC
Created attachment 143158 [details]
dmesg log

When amdgpu.dc=1 and modesetting driver are used at the same time, fps in 3D applications can't exceed monitor refreshrate and there is always no tearing, despite of vsync enabled or not in the applications.
Happens with both radeonsi and radv. For OGL apps, forcing vsync off via vblank_mode=0 also doesn't show any effect in this case.

The issue doesn't occur with amdgpu.dc=0 + modesetting or with xf86-video-amdgpu.

Though I think having an option for globally enforcing vsync would be tempting if an application doesn't offer vsync for whatever reasons. radv and amdvlk also don't offer options to enforce vsync, just radeonsi does.
Perhaps it could be a sub-option for TearFree?

linux drm-next-5.1-wip 5acc93145bf97a0d59ee65255cae8e1bd0623b07
xorg-server 1.20.3
Comment 1 tempel.julian 2019-01-19 13:02:19 UTC
Created attachment 143159 [details]
xorg log
Comment 2 Michel Dänzer 2019-01-21 11:32:04 UTC
modesetting driver bugs need to be reported at https://gitlab.freedesktop.org/xorg/xserver/issues/new .

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.