drm/i915: check for multiple write domains in pin_and_relocate
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 19 Feb 2010 10:52:02 +0000 (11:52 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 26 Feb 2010 21:23:22 +0000 (13:23 -0800)
commit16edd55029fcedaa0d03f24ee607c3a882871a10
tree7c5262d63b30c34c8db2024b5904d8849f0781e2
parent922a2efc1b6ef48e2783f7efeb3a94e952c7ed14
drm/i915: check for multiple write domains in pin_and_relocate

The assumption that an object has only ever one write domain is deeply
threaded into gem (it's even encoded the the singular of the variable
name). Don't let userspace screw us over.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/i915/i915_gem.c