]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3c03f293776c4963fbc5295fca4bb9ed816336a0
tree7144b9d1914e5fa7d730adadfb8b53f138bd0140
parent59f1d28d16fdafb2e438af88fe66dd74657b85e4
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