[Intel-gfx] [PATCH] drm/i915: Simplify i915_gem_obj_is_pinned() test for set-tiling

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 16 03:50:04 PDT 2015


On Thu, Apr 16, 2015 at 11:03:20AM +0200, Daniel Vetter wrote:
> On Wed, Apr 15, 2015 at 04:39:59PM +0100, Chris Wilson wrote:
> > 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 at chris-wilson.co.uk>
> 
> Queued for -next, thanks for the patch.

I was wondering if I could get away with framebuffer_references now that
we do allocate fb for everything, but was too lazy to actually check.

Gut feeling?
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list