[intel-gem] Call the new throttle ioctl from swap buffers
authorKeith Packard <keithp@keithp.com>
Fri, 6 Jun 2008 20:05:46 +0000 (13:05 -0700)
committerKeith 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

index 2a25f079e9548dc1d5cc36d38346b2102344eb90..d5257ae27e2e8d19f623d8a72e81c7f64003ab23 100644 (file)
@@ -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 */