Bug 70055

Summary: Driver is not respecting vsync option with a Intel<<AMD prime setup
Product: xorg Reporter: Rune Petersen <rune>
Component: Driver/intelAssignee: Chris Wilson <chris>
Status: RESOLVED FIXED QA Contact: Intel GFX Bugs mailing list <intel-gfx-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Rune Petersen 2013-10-02 21:17:19 UTC
rendering using the Intel GPU the frame rate maxes out at 60, but rendering using a AMD GPU does not appear to be bound by the display rate at all.

With simple games and game menus, the frame rate can easely exceed 100 fps on a AMD 6630M, and not all apps/games has fps limiting functionality.

I took a quick look at the source, and it appears to me that there is no code to synchronize to vsync when copying between prime buffers on different devices.

Looking at the ati driver, it appears to force vsync synchronization when copying prime buffers when the the application is running full screen.

Any chance we can get vsync synchronization for prime setups?


Driver version: 2.21.15
Xorg core version: 1.14.3


P.S:
Thank you to everyone who's hard work made this bug report possible =)
Comment 1 Chris Wilson 2013-10-02 21:48:15 UTC
In progress. Maarten Lankhorst has a synchronisation mechanism for the kernel that is partially upstream which is required to sync between the two devices - and has demonstrated it with vsynced rendering between i915/nouveau so far.
Comment 2 Chris Wilson 2017-02-02 15:55:05 UTC
Should be working now with v4.9 kernel and xorg-1.19 using DRI3 between intel/nouveau/radeon/amdgpu.
Comment 3 Rune Petersen 2017-02-03 15:56:54 UTC
It has been kinda working for a few yeas now, but with Linux 4.9 and the latest Xorg it actually works!

Thank you everyone

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.