summaryrefslogtreecommitdiff
path: root/src/i830_driver.c
diff options
context:
space:
mode:
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>2008-08-05 13:03:46 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2008-08-05 13:03:46 -0700
commitc2f0df4dc97c87539b66525a277c7d1e2c421f61 (patch)
tree8a9e657d7546310f8a458aa1b2b52bd748a6957c /src/i830_driver.c
parent4f1f30854260e18b8b9c4103eebbad5dcf729ce6 (diff)
parent750bd0bde09adf956c17bbb49c5a6020f12e60a4 (diff)
Merge branch 'drm-gem' of ssh://git.freedesktop.org/git/xorg/driver/xf86-video-intel into drm-gem
Diffstat (limited to 'src/i830_driver.c')
-rw-r--r--src/i830_driver.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index 4cede907..b6fac9f8 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2510,6 +2510,9 @@ I830BlockHandler(int i,
intel_batch_flush(pScrn);
pI830->need_mi_flush = FALSE;
+#ifdef XF86DRI
+ drmCommandNone(pI830->drmSubFD, DRM_I915_GEM_THROTTLE);
+#endif
}
/*
@@ -2768,6 +2771,7 @@ i830_init_bufmgr(ScrnInfoPtr pScrn)
batch_size = 4096;
pI830->bufmgr = intel_bufmgr_gem_init(pI830->drmSubFD, batch_size);
+ intel_bufmgr_gem_enable_reuse(pI830->bufmgr);
} else {
pI830->bufmgr = intel_bufmgr_fake_init(pI830->fake_bufmgr_mem->offset,
pI830->FbBase +