[Bug 86366] Slow i965 performance (30 FPS), but super-fast with INTEL_DEBUG=sync

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Mar 10 01:45:54 PDT 2015


https://bugs.freedesktop.org/show_bug.cgi?id=86366

--- Comment #4 from Daniel van Vugt <daniel.van.vugt at canonical.com> ---
Digging in the kernel, there's some suspicious logic in the i915 driver (used
by Mesa i965 etc):

/* Throttle our rendering by waiting until the ring has completed our requests
 * emitted over 20 msec ago.
 *
 * Note that if we were to use the current jiffies each time around the loop,
 * we wouldn't escape the function with any frames outstanding if the time to
 * render a frame was over 20ms.
 *
 * This should get us reasonable parallelism between CPU and GPU but also
 * relatively low latency when blocking on a particular request to finish.
 */
static int
i915_gem_ring_throttle(struct drm_device *dev, struct drm_file *file)


I think that's the problem. Maybe Mir is behaving so well that a single frame
doesn't fill the ring (when Mir is only double buffering). So we have to rely
on the 20ms delay in the i915 kernel module that causes us to skip a frame.

I'm still hoping to be wrong, and that this isn't a *feature* of the i915
kernel module.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20150310/a11cc282/attachment.html>


More information about the intel-3d-bugs mailing list