commit | 0235439232cb6f8a54f8976aa8330c1c98ebad0b | [log] [tgz] |
---|---|---|
author | Eric Anholt <eric@anholt.net> | Wed Nov 26 13:58:13 2008 -0800 |
committer | Dave Airlie <airlied@redhat.com> | Thu Dec 04 11:24:47 2008 +1000 |
tree | 15acdd628efe011f127d7b8ecc2fb65ce4131705 | |
parent | ac94a962b24a88ea5d00f4697550d9982f300751 [diff] |
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>