>From 2096ba393fde1729503d87c224b85e92ac817b67 Mon Sep 17 00:00:00 2001
From: Alex Deucher <alexdeuc...@gmail.com>
Date: Tue, 9 Feb 2010 17:18:48 -0500
Subject: [PATCH] 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: Alex Deucher <alexdeuc...@gmail.com>
---
 drivers/gpu/drm/radeon/atombios_crtc.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/radeon/atombios_crtc.c
b/drivers/gpu/drm/radeon/atombios_crtc.c
index 925b453..0ec6934 100644
--- a/drivers/gpu/drm/radeon/atombios_crtc.c
+++ b/drivers/gpu/drm/radeon/atombios_crtc.c
@@ -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 {
-- 
1.5.6.3

Attachment: 0001-drm-radeon-kms-evergreen-fix-multi-head.patch
Description: application/mbox

------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
--
_______________________________________________
Dri-devel mailing list
Dri-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to