[Intel-gfx] [RFC] libdrm_intel: Add support for userptr objects

Chris Wilson chris at chris-wilson.co.uk
Fri May 9 07:30:11 CEST 2014


On Thu, May 08, 2014 at 05:10:24PM -0700, Ben Widawsky wrote:
> On Wed, Feb 26, 2014 at 04:41:41PM +0000, Tvrtko Ursulin wrote:
> > +struct drm_i915_gem_userptr {
> > +	__u64 user_ptr;
> > +	__u64 user_size;
> > +	__u32 flags;
> > +#define I915_USERPTR_READ_ONLY 0x1
> > +#define I915_USERPTR_UNSYNCHRONIZED 0x80000000
> > +	/**
> > +	* Returned handle for the object.
> > +	*
> > +	* Object handles are nonzero.
> > +	*/
> > +	__u32 handle;
> > +};
> > +
> 
> Oh yeah. I want a ctx_id here as well. Chris, any objection to adding
> this?

What for? bo are file-scoped not context-scoped.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre



More information about the Intel-gfx mailing list