summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2008-07-29 15:22:39 -0700
committerCarl Worth <cworth@cworth.org>2008-07-31 11:14:25 -0700
commit750bd0bde09adf956c17bbb49c5a6020f12e60a4 (patch)
tree4816e75a660e7a0b1aa936d8c6aa64f650aea568
parenta893f176dda0b64f7dadfda6bf0331240037851e (diff)
Call DRM_I915_GEM_THROTTLE from I830BlockHandler
This prevents the CPU from ridiculously outrunning the GPU.
-rw-r--r--src/i830_driver.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/i830_driver.c b/src/i830_driver.c
index a453d907..195bc5c2 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -2507,6 +2507,9 @@ I830BlockHandler(int i,
intel_batch_flush(pScrn);
pI830->need_mi_flush = FALSE;
+#ifdef XF86DRI
+ drmCommandNone(pI830->drmSubFD, DRM_I915_GEM_THROTTLE);
+#endif
}
/*