summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer-ubuntu.(none)>2006-09-18 06:53:23 +1000
committerDave Airlie <airlied@starflyer-ubuntu.(none)>2006-09-18 06:53:23 +1000
commita7b97697ed13ac25844890439ffba31524e03a16 (patch)
treeff0a825de7b4348c76960b134d66faf597097ebe /src
parent362ee3778764633cb4c9388aa329c5b715885038 (diff)
radeon: initialise controller structures
Diffstat (limited to 'src')
-rw-r--r--src/radeon_driver.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c
index 8c30769..9c301a3 100644
--- a/src/radeon_driver.c
+++ b/src/radeon_driver.c
@@ -6522,6 +6522,12 @@ static Bool RADEONInitCrtcRegisters(ScrnInfoPtr pScrn, RADEONSavePtr save,
int hsync_wid;
int vsync_wid;
+ RADEONEntPtr pRADEONEnt = RADEONEntPriv(pScrn);
+
+ pRADEONEnt->Controller[0].IsUsed = TRUE;
+ pRADEONEnt->Controller[0].IsActive = TRUE;
+ pRADEONEnt->Controller[0].pCurMode = mode;
+
switch (info->CurrentLayout.pixel_code) {
case 4: format = 1; break;
case 8: format = 2; break;
@@ -6717,6 +6723,10 @@ static Bool RADEONInitCrtc2Registers(ScrnInfoPtr pScrn, RADEONSavePtr save,
int hsync_wid;
int vsync_wid;
+ pRADEONEnt->Controller[1].IsUsed = TRUE;
+ pRADEONEnt->Controller[1].IsActive = TRUE;
+ pRADEONEnt->Controller[1].pCurMode = mode;
+
switch (info->CurrentLayout.pixel_code) {
case 4: format = 1; break;
case 8: format = 2; break;