diff options
author | Zhenyu Wang <zhenyuw@linux.intel.com> | 2009-06-30 15:40:34 +0800 |
---|---|---|
committer | Zhenyu Wang <zhenyuw@linux.intel.com> | 2009-07-01 10:17:01 +0800 |
commit | 7e79fc8aa93df4df37c25cf37ee0ec6c7caca1d9 (patch) | |
tree | dd8bd7c592264f300e0d71746428ba7c30a94c2e /src/i830_driver.c | |
parent | 50392ac8234d643c8a99e1753bdb196c0062a891 (diff) |
Fix 945GM VT switch in UMS
Bug #19578. We should set private intel_crtc state according
to current, as fail to do so pipe A needs active won't be taken
care of. Also make sure pipe swap operation always set during
VT switch.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index 45a8aee6..c125a73e 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -2786,9 +2786,6 @@ I830ScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv) } i830_init_bufmgr(pScrn); - if (!pI830->use_drm_mode) - I830SwapPipes(pScrn); - pScrn->fbOffset = pI830->front_buffer->offset; if (!pI830->use_drm_mode) { @@ -3077,6 +3074,9 @@ I830EnterVT(int scrnIndex, int flags) /* Get the hardware into a known state if needed */ if (!pI830->use_drm_mode) { + + I830SwapPipes(pScrn); + /* Disable outputs */ for (i = 0; i < xf86_config->num_output; i++) { xf86OutputPtr output = xf86_config->output[i]; |