summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/radeon/r100.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2009-10-08 01:32:49 (GMT)
committerDave Airlie <airlied@redhat.com>2009-10-08 01:39:16 (GMT)
commitd4ac6a05d51357e31028cc9076874a58dd197b83 (patch)
treeb0a88c26147c1a96a0b4cce277fdff94bb1b4989 /drivers/gpu/drm/radeon/r100.c
parent49c458e544ae14514209ed80ea6829ca1b18ddf0 (diff)
downloadlinux-d4ac6a05d51357e31028cc9076874a58dd197b83.tar.xz
drm/radeon/kms: fix vline register for second head.
Both r100/r600 had this wrong, use the macro to extract the register to relocate. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r100.c')
-rw-r--r--drivers/gpu/drm/radeon/r100.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r100.c b/drivers/gpu/drm/radeon/r100.c
index 5fe12c0..374ecac 100644
--- a/drivers/gpu/drm/radeon/r100.c
+++ b/drivers/gpu/drm/radeon/r100.c
@@ -829,7 +829,7 @@ int r100_cs_packet_parse_vline(struct radeon_cs_parser *p)
header = radeon_get_ib_value(p, h_idx);
crtc_id = radeon_get_ib_value(p, h_idx + 5);
- reg = header >> 2;
+ reg = CP_PACKET0_GET_REG(header);
mutex_lock(&p->rdev->ddev->mode_config.mutex);
obj = drm_mode_object_find(p->rdev->ddev, crtc_id, DRM_MODE_OBJECT_CRTC);
if (!obj) {