[Intel-gfx] [RFC 2/3] drm/i915: Track aggregate per-object VMA pin count

Chris Wilson chris at chris-wilson.co.uk
Thu Apr 21 12:15:57 UTC 2016


On Thu, Apr 21, 2016 at 01:05:52PM +0100, Tvrtko Ursulin wrote:
> From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
> 
> This allows trivial (non-iterating) i915_gem_obj_is_pinned
> implementation which in turns prevents i915_gem_madvise_ioctl
> showing up in profiles in benchmarks like SynMark2/OglDrvCtx.

madvise doesn't need to check is-pinned at all.

And I prefer obj->bind_count.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list