[Intel-gfx] [PATCH v4] drm/i915: Add soft-pinning API for execbuffer

Chris Wilson chris at chris-wilson.co.uk
Sat Jul 4 00:53:51 PDT 2015


On Tue, Jun 30, 2015 at 03:13:13PM +0100, Thomas Daniel wrote:
>  	/**
> -	 * Returned value of the updated offset of the object, for future
> -	 * presumed_offset writes.
> +	 * When the EXEC_OBJECT_PINNED flag is specified this is populated by
> +	 * the user with the GTT offset at which this object will be pinned.
> +	 * Otherwise the kernel populates it with the value of the updated
> +	 * offset of the object, for future presumed_offset writes.
>  	 */

This isn't strictly true, even without PINNED but NO_RELOC this field must
be accurately populated with the presumed_offset. No matter what, the
kernel returns the value of the current address after execbuffer.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre


More information about the Intel-gfx mailing list