drm/i915: Return error in i915_gem_set_to_gtt_domain if we're not in the GTT.
authorEric Anholt <eric@anholt.net>
Wed, 26 Nov 2008 21:58:13 +0000 (13:58 -0800)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Dec 2008 01:24:47 +0000 (11:24 +1000)
commit0235439232cb6f8a54f8976aa8330c1c98ebad0b
tree15acdd628efe011f127d7b8ecc2fb65ce4131705
parentac94a962b24a88ea5d00f4697550d9982f300751
drm/i915: Return error in i915_gem_set_to_gtt_domain if we're not in the GTT.

It's only for flushing caches appropriately for GTT access, not for actually
getting it there.  Prevents potential smashing of cpu read/write domains on
unbound objects.

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