diff options
author | Dave Airlie <airlied@redhat.com> | 2009-10-01 19:19:09 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-10-04 20:00:58 -0400 |
commit | dfee5614e4d83a32cef9193a8b19bc1d8900f93d (patch) | |
tree | 5f9eb131ec16cb917db72f3f881901d03fd9dc30 /drivers/gpu/drm/radeon/radeon_display.c | |
parent | 185974dd596e67e73906790c2a4a4579d75911e6 (diff) |
drm/radeon/kms: respect single crtc cards, only create one crtc. (v2)
Also add single crtc for RN50 chips.
changes in v2:
fix vblank init to respect single crtc flag
fix r100 mode bandwidth to respect single crtc flag
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_display.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_display.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index 5d8141b13765..44cfcfdf1352 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c | |||
@@ -724,7 +724,11 @@ int radeon_modeset_init(struct radeon_device *rdev) | |||
724 | if (ret) { | 724 | if (ret) { |
725 | return ret; | 725 | return ret; |
726 | } | 726 | } |
727 | /* allocate crtcs - TODO single crtc */ | 727 | |
728 | if (rdev->flags & RADEON_SINGLE_CRTC) | ||
729 | num_crtc = 1; | ||
730 | |||
731 | /* allocate crtcs */ | ||
728 | for (i = 0; i < num_crtc; i++) { | 732 | for (i = 0; i < num_crtc; i++) { |
729 | radeon_crtc_init(rdev->ddev, i); | 733 | radeon_crtc_init(rdev->ddev, i); |
730 | } | 734 | } |