diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2008-10-01 14:38:27 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2008-10-01 14:38:27 -0400 |
commit | 346228b20c69a965c9e7d67157f42c1d36a5b6c3 (patch) | |
tree | 5ea859ae9f108fb989f67653471b4bc8deb441b0 /src/radeon.h | |
parent | c359c2a31caf9f75b9fc6b6bcbc3e9dc1fe404ba (diff) |
Workaround to make initial rotation work
Acceleration needs to be initialized before setting the mode
for initial rotation to work. Changing the order in RADEONScreenInit()
doesn't work because RADEONDRIKernelInit() hangs in the ioctl to
initialize the CP if the mode is not set prior (even if the heads
are turned off after setting the mode). The workaround is to set the
modes twice, once before accel and once after.
This needs to be looked into further.
Diffstat (limited to 'src/radeon.h')
-rw-r--r-- | src/radeon.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/radeon.h b/src/radeon.h index 6cce7365..aec8a258 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -1304,7 +1304,7 @@ static __inline__ void RADEON_MARK_SYNC(RADEONInfoPtr info, ScrnInfoPtr pScrn) static __inline__ void RADEON_SYNC(RADEONInfoPtr info, ScrnInfoPtr pScrn) { #ifdef USE_EXA - if (info->useEXA) + if (info->useEXA && pScrn->pScreen) exaWaitSync(pScrn->pScreen); #endif #ifdef USE_XAA |