]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Simplify i915_gem_obj_is_pinned() test for set-tiling
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 15 Apr 2015 15:39:59 +0000 (16:39 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 16 Apr 2015 09:20:29 +0000 (11:20 +0200)
commit4c573077ba98244d1860bd984e11ffdae40ba343
tree03ffda73b82a7807073ef69c366e5fc74141038e
parent02796638d02de5f5607fe40fa5336ae4de762ae2
drm/i915: Simplify i915_gem_obj_is_pinned() test for set-tiling

Since the removal of the user pin_ioctl, the only means for pinning an
object is either through binding to the scanout or during execbuf
reservation. As the later prevents a call to set-tiling, we need only
check if the obj is pinned into the display plane to see if we need
reject the set-tiling ioctl.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_tiling.c