[igt-dev] [PATCH i-g-t v3 3/7] lib/intel_batchbuffer: Introduce intel_bb

Chris Wilson chris at chris-wilson.co.uk
Mon May 18 10:01:09 UTC 2020


Quoting Zbigniew Kempczyński (2020-05-18 10:09:15)
> +/*
> + * intel_bb_add_handle:
> + * @ibb: pointer to intel_bb
> + * @handle: which handle to add to objects array
> + * @offset: presumed offset of the object when I915_EXEC_NO_RELOC flag is
> + * used in execbuf call
> + *
> + * Function allocates additional execobj slot in object array for a handle.
> + * For batchbuffer only presumed address is saved.
> + */
> +static void intel_bb_add_handle(struct intel_bb *ibb,
> +                               uint32_t handle,
> +                               uint64_t offset)

If you get into the CCS directory management (which we will for
rendercopy), we will need to take note of EXEC_OBJECT_PINNED. And you
may as well pass the EXEC_OBJECT_WRITE flag at this time. In short, you
might as well start off by passing flags.
-Chris


More information about the igt-dev mailing list