[intel-gem] Call the new throttle ioctl from swap buffers

Swap buffers is a fairly reasonable time to wait for the hardware for a
while; this keeps us from overrunning the ring.
This commit is contained in:
Keith Packard
2008-06-06 13:05:46 -07:00
parent dbf3c5247c
commit f5d03af109
@@ -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 */