drm/i915: Don't return busy for buffers left on the flushing list.
authorEric Anholt <eric@anholt.net>
Mon, 15 Dec 2008 03:05:04 +0000 (19:05 -0800)
committerDave Airlie <airlied@redhat.com>
Fri, 19 Dec 2008 05:34:32 +0000 (15:34 +1000)
commitc4de0a5d671e3af38dc3496538e391782aecc3a5
tree7144b9d1914e5fa7d730adadfb8b53f138bd0140
parent929096fe9ff1f4b3645cf3919527ab47e8d5e17c
drm/i915: Don't return busy for buffers left on the flushing list.

These buffers don't have active rendering still occurring to them, they just
need either a flush to be emitted or a retire_requests to occur so that we
notice they're done.  Return unbusy so that one of the two occurs.  The two
expected consumers of this interface (OpenGL and libdrm_intel BO cache) both
want this behavior.

Signed-off-by: Eric Anholt <eric@anholt.net>
Acked-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_gem.c