提交 12d7798f 编写于 作者: A Alex Deucher 提交者: Dave Airlie

drm/radeon/kms/evergreen: fix multi-head

Fix a typo in crtc offset setup that set the crtc
instances wrong for all crtcs except the first.
Signed-off-by: NAlex Deucher <alexdeucher@gmail.com>
Signed-off-by: NDave Airlie <airlied@redhat.com>
上级 37b4390e
......@@ -1145,22 +1145,22 @@ void radeon_atombios_init_crtc(struct drm_device *dev,
switch (radeon_crtc->crtc_id) {
case 0:
default:
radeon_crtc->crtc_id = EVERGREEN_CRTC0_REGISTER_OFFSET;
radeon_crtc->crtc_offset = EVERGREEN_CRTC0_REGISTER_OFFSET;
break;
case 1:
radeon_crtc->crtc_id = EVERGREEN_CRTC1_REGISTER_OFFSET;
radeon_crtc->crtc_offset = EVERGREEN_CRTC1_REGISTER_OFFSET;
break;
case 2:
radeon_crtc->crtc_id = EVERGREEN_CRTC2_REGISTER_OFFSET;
radeon_crtc->crtc_offset = EVERGREEN_CRTC2_REGISTER_OFFSET;
break;
case 3:
radeon_crtc->crtc_id = EVERGREEN_CRTC3_REGISTER_OFFSET;
radeon_crtc->crtc_offset = EVERGREEN_CRTC3_REGISTER_OFFSET;
break;
case 4:
radeon_crtc->crtc_id = EVERGREEN_CRTC4_REGISTER_OFFSET;
radeon_crtc->crtc_offset = EVERGREEN_CRTC4_REGISTER_OFFSET;
break;
case 5:
radeon_crtc->crtc_id = EVERGREEN_CRTC5_REGISTER_OFFSET;
radeon_crtc->crtc_offset = EVERGREEN_CRTC5_REGISTER_OFFSET;
break;
}
} else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册