Bug 70055 - Driver is not respecting vsync option with a Intel<<AMD prime setup
Summary: Driver is not respecting vsync option with a Intel<<AMD prime setup
Status: RESOLVED FIXED
Alias: None
Product: xorg
Classification: Unclassified
Component: Driver/intel (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Chris Wilson
QA Contact: Intel GFX Bugs mailing list
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 21:17 UTC by Rune Petersen
Modified: 2017-02-03 15:56 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.