summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorAlex Deucher <alexdeucher@gmail.com>2008-08-12 03:05:11 -0400
committerDave Airlie <airlied@redhat.com>2008-08-14 09:19:03 +1000
commit8867eca8721a02135f4b0e65a454d5e05141eee3 (patch)
treee851bd9ebc643b690673bc868f4e4787875765c7 /linux-core
parentae89ced7ded55c164c620ebbd799fdb44ed9c09f (diff)
set base in legacy crtc mode set
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/radeon_legacy_crtc.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/linux-core/radeon_legacy_crtc.c b/linux-core/radeon_legacy_crtc.c
index 6446f8cb..7f7ce617 100644
--- a/linux-core/radeon_legacy_crtc.c
+++ b/linux-core/radeon_legacy_crtc.c
@@ -917,6 +917,21 @@ static bool radeon_crtc_mode_fixup(struct drm_crtc *crtc,
return true;
}
+void radeon_crtc_set_base(struct drm_crtc *crtc, int x, int y)
+{
+ struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc);
+
+ switch(radeon_crtc->crtc_id) {
+ case 0:
+ radeon_set_crtc1_base(crtc, x, y);
+ break;
+ case 1:
+ radeon_set_crtc2_base(crtc, x, y);
+ break;
+
+ }
+}
+
static void radeon_crtc_mode_set(struct drm_crtc *crtc,
struct drm_display_mode *mode,
struct drm_display_mode *adjusted_mode,
@@ -942,6 +957,8 @@ static void radeon_crtc_mode_set(struct drm_crtc *crtc,
/* TODO TV */
+ radeon_crtc_set_base(crtc, x, y);
+
switch(radeon_crtc->crtc_id) {
case 0:
radeon_set_crtc1_timing(crtc, adjusted_mode);
@@ -955,21 +972,6 @@ static void radeon_crtc_mode_set(struct drm_crtc *crtc,
}
}
-void radeon_crtc_set_base(struct drm_crtc *crtc, int x, int y)
-{
- struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc);
-
- switch(radeon_crtc->crtc_id) {
- case 0:
- radeon_set_crtc1_base(crtc, x, y);
- break;
- case 1:
- radeon_set_crtc2_base(crtc, x, y);
- break;
-
- }
-}
-
static void radeon_crtc_prepare(struct drm_crtc *crtc)
{
radeon_crtc_dpms(crtc, DRM_MODE_DPMS_OFF);