diff options
author | Mario Kleiner <[email protected]> | 2010-10-05 19:57:36 -0400 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2010-10-06 11:46:27 +1000 |
commit | 6383cf7d7839bf52aa4efa20cc921773126797f4 (patch) | |
tree | 963fa5cff40af73656442ccc1b7fdaf2097332ea /scripts/basic/docproc.c | |
parent | ba032a58d1f320039e7850fb6e8651695c1aa571 (diff) |
drm/radeon: Add function for display scanout position query.
radeon_get_crtc_scanoutpos() returns the current horizontal
and vertical scanout position of a crtc. It also reports if
the display scanout is currently inside the vblank area.
hpos reports current horizontal pixel scanout position.
vpos reports the current scanned out line as a value >= 0
in active scanout. If the scanout is inside vblank area, it
reports a negative value, the number of scanlines until
end of vblank aka start of active scanout, e.g., -3 ==
"At most 3 scanlines until end of vblank".
This code is derived from radeon_pm_in_vbl(), tested on
R500 and R600.
Signed-off-by: Mario Kleiner <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'scripts/basic/docproc.c')
0 files changed, 0 insertions, 0 deletions