diff options
author | Dave Airlie <airlied@linux.ie> | 2008-12-29 12:48:11 +1000 |
---|---|---|
committer | Zhenyu Wang <zhenyu.z.wang@intel.com> | 2008-12-30 18:09:13 +0800 |
commit | f0e9e54c96ac58cab9ea9d6b83739c84d1ae13d7 (patch) | |
tree | 1a8002a3f4d1605f698155a7040dc8bb19d40bc5 /src/i830_driver.c | |
parent | 59358ecbbeceb9a2ce5a33787941c2e67fee4218 (diff) |
intel: don't call enter/leave VT for KMS enabled systems
Signed-off-by: Dave Airlie <airlied@linux.ie>
(cherry picked from commit 649374b88b330838133d78be1953ce8b18ddd2c6)
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r-- | src/i830_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c index d3b539ac..6fed32d9 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -3587,7 +3587,7 @@ I830LeaveVT(int scrnIndex, int flags) i830_unbind_all_memory(pScrn); #ifdef XF86DRI - if (pI830->memory_manager) { + if (pI830->memory_manager && !pI830->use_drm_mode) { int ret; /* Tell the kernel to evict all buffer objects and block GTT usage while @@ -3630,7 +3630,7 @@ I830EnterVT(int scrnIndex, int flags) pI830->leaving = FALSE; #ifdef XF86DRI - if (pI830->memory_manager) { + if (pI830->memory_manager && !pI830->use_drm_mode) { int ret; /* Tell the kernel that we're back in control and ready for GTT |