drm/i915: Make a single set-to-cpu-domain path and use it wherever needed.
authorEric Anholt <eric@anholt.net>
Fri, 14 Nov 2008 21:35:19 +0000 (13:35 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Dec 2008 01:21:55 +0000 (11:21 +1000)
commite47c68e9c5d71e2faab8c2b82f57c6c73e6456fd
tree5edeeaa59dbccf418b4cae659efdcaa4cf4cc496
parent2ef7eeaa553d88e78d9a4520271f26a7bc0e2968
drm/i915: Make a single set-to-cpu-domain path and use it wherever needed.

This fixes several domain management bugs, including potential lack of cache
invalidation for pread, potential failure to wait for set_domain(CPU, 0),
and more, along with producing more intelligible code.

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