drm/i915: Move flushing list cleanup from flush request retire to request emit.
authorEric Anholt <eric@anholt.net>
Fri, 7 Nov 2008 00:00:31 +0000 (16:00 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Dec 2008 01:21:45 +0000 (11:21 +1000)
commitce44b0ea3dc04236d852d78a06f850d1f7b03f3d
tree8951c548a4c427d8daea1e304d97c3c4e161d83a
parenta7f014f2de04893f95cfe40fe35f15c8dae4b36e
drm/i915: Move flushing list cleanup from flush request retire to request emit.

obj_priv->write_domain is "write domain if the GPU went idle now", not
"write domain at this moment."  By postponing the clear, we confused the
concept, required more storage, and potentially emitted more flushes than
are required.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_proc.c