diff options
author | Ilija Hadzic <ilijahadzic@gmail.com> | 2013-05-08 22:39:40 -0400 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2013-05-29 15:09:13 +0200 |
commit | 5fd2eb5d12cea32927a9e6c6ce4afd18aa7d046a (patch) | |
tree | 14fe7c18e24b44a589cadf03577422e80f278b7d /src/ati_pciids_gen.h | |
parent | e41ad30d09be4962cfb1942b0b9f63875dbb2d2a (diff) |
drmmode: calculate interpolated vblanks while in dpms-off state
This adds provisions for interpolating vblanks while the CRTC
is in DPMS-off state. When entering DPMS-off state, we
record the last vblank time, sequence number and frame rate
in CRTC-private structure.
When going back to DPMS-on state we read the current
time and calculate how long we have been off. Then we derive
how many vblanks that would have been had the CRTC remained
running. These are the interpolated vblanks.
Finally, we accumulate the number of interpolated vblanks
in CRTC-private structure to get the number of interpolated
vblanks over the system lifetime.
v2: Track frame rate instead of vblank period. The former
eliminates some roundoff errors.
Signed-off-by: Ilija Hadzic <ihadzic@research.bell-labs.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src/ati_pciids_gen.h')
0 files changed, 0 insertions, 0 deletions