diff options
author | Dave Airlie <airlied@starflyer-ubuntu.(none)> | 2006-09-18 06:53:23 +1000 |
---|---|---|
committer | Dave Airlie <airlied@starflyer-ubuntu.(none)> | 2006-09-18 06:53:23 +1000 |
commit | a7b97697ed13ac25844890439ffba31524e03a16 (patch) | |
tree | ff0a825de7b4348c76960b134d66faf597097ebe | |
parent | 362ee3778764633cb4c9388aa329c5b715885038 (diff) |
radeon: initialise controller structures
-rw-r--r-- | src/radeon_driver.c | 10 |
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; |