diff options
author | Dave Airlie <airlied@linux.ie> | 2007-06-03 16:49:14 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2007-06-03 16:49:14 +1000 |
commit | 63f0d4ed0a98830ecbe18c6e4174689111a59b68 (patch) | |
tree | 12883bb4c2296c49b756624c10ffba14ac57bcfa /src/radeon_driver.c | |
parent | d7775c1b38b5bdc439a27ec2c3c3a03a5b24cf57 (diff) |
randr-1.2: add support for vblank on both heads
Also disable vbl when 3D isn't running
Diffstat (limited to 'src/radeon_driver.c')
-rw-r--r-- | src/radeon_driver.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/radeon_driver.c b/src/radeon_driver.c index 1c433e2..7d48650 100644 --- a/src/radeon_driver.c +++ b/src/radeon_driver.c @@ -5436,6 +5436,8 @@ Bool RADEONEnterVT(int scrnIndex, int flags) /* get the DRI back into shape after resume */ RADEONDRIResume(pScrn->pScreen); RADEONAdjustMemMapRegisters(pScrn, &info->ModeReg); + + RADEONDRISetVBlankInterrupt (pScrn, TRUE); } #endif /* this will get XVideo going again, but only if XVideo was initialised @@ -5471,6 +5473,8 @@ void RADEONLeaveVT(int scrnIndex, int flags) "RADEONLeaveVT\n"); #ifdef XF86DRI if (RADEONPTR(pScrn)->directRenderingInited) { + + RADEONDRISetVBlankInterrupt (pScrn, FALSE); DRILock(pScrn->pScreen, 0); RADEONCP_STOP(pScrn, info); |