projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dbf3c52
)
[intel-gem] Call the new throttle ioctl from swap buffers
author
Keith Packard
<keithp@keithp.com>
Fri, 6 Jun 2008 20:05:46 +0000
(13:05 -0700)
committer
Keith Packard
<keithp@keithp.com>
Fri, 6 Jun 2008 20:05:46 +0000
(13:05 -0700)
Swap buffers is a fairly reasonable time to wait for the hardware for a
while; this keeps us from overrunning the ring.
src/mesa/drivers/dri/intel/intel_buffers.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/intel/intel_buffers.c
b/src/mesa/drivers/dri/intel/intel_buffers.c
index 2a25f079e9548dc1d5cc36d38346b2102344eb90..d5257ae27e2e8d19f623d8a72e81c7f64003ab23 100644
(file)
--- a/
src/mesa/drivers/dri/intel/intel_buffers.c
+++ b/
src/mesa/drivers/dri/intel/intel_buffers.c
@@
-848,6
+848,8
@@
intelSwapBuffers(__DRIdrawablePrivate * dPriv)
intel_fb->swap_ust = ust;
}
+ drmCommandNone(intel->driFd, DRM_I915_GEM_THROTTLE);
+
}
else {
/* XXX this shouldn't be an error but we can't handle it for now */