drm/i915: don't allow tiling changes on pinned buffers v2
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 23 Apr 2010 21:01:01 +0000 (23:01 +0200)
committerEric Anholt <eric@anholt.net>
Mon, 10 May 2010 20:38:30 +0000 (13:38 -0700)
commit31770bd49ab157c5639043ad7541c3e0c83afcc4
treea036ad720dac237ff7a714604d23f0c3dbe48efb
parent149c36a346f63fa4be7d1432d7b1b3095a95bf47
drm/i915: don't allow tiling changes on pinned buffers v2

Makes no sense and complicates matters for pipelined tiling changes.
So don't allow it and return -EBUSY.

v2: Fix reference leak. Thanks to Owain Ainsworth for spotting this.

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