From: Keith Packard Date: Fri, 6 Jun 2008 20:05:46 +0000 (-0700) Subject: [intel-gem] Call the new throttle ioctl from swap buffers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f5d03af109e0c6fdd7cc6786f8ae40f8ae626f5a;p=mesa.git [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. --- diff --git a/src/mesa/drivers/dri/intel/intel_buffers.c b/src/mesa/drivers/dri/intel/intel_buffers.c index 2a25f079e95..d5257ae27e2 100644 --- 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 */