summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/radeon/radeon_pm.c
diff options
context:
space:
mode:
authorMario Kleiner <mario.kleiner@tuebingen.mpg.de>2010-10-05 19:57:36 -0400
committerDave Airlie <airlied@redhat.com>2010-10-06 11:46:27 +1000
commit6383cf7d7839bf52aa4efa20cc921773126797f4 (patch)
tree963fa5cff40af73656442ccc1b7fdaf2097332ea /drivers/gpu/drm/radeon/radeon_pm.c
parentba032a58d1f320039e7850fb6e8651695c1aa571 (diff)
downloadblackbird-op-linux-6383cf7d7839bf52aa4efa20cc921773126797f4.tar.gz
blackbird-op-linux-6383cf7d7839bf52aa4efa20cc921773126797f4.zip
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 <mario.kleiner@tuebingen.mpg.de> Signed-off-by: Alex Deucher <alexdeucher@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_pm.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud