[igt-dev] [PATCH i-g-t v18 04/31] lib/intel_allocator_simple: Add simple allocator

Chris Wilson chris at chris-wilson.co.uk
Fri Jan 29 16:05:40 UTC 2021


Quoting Zbigniew Kempczyński (2021-01-29 14:44:27)
> +struct intel_allocator *intel_allocator_simple_create(int fd, uint32_t ctx)
> +{
> +       struct intel_allocator *ial;
> +       struct intel_allocator_simple *ials;
> +
> +       igt_debug("Using simple allocator <fd: %d, ctx: %u>\n", fd, ctx);
> +
> +       ial = calloc(1, sizeof(*ial));
> +       igt_assert(ial);
> +
> +       ial->fd = fd;
> +       ial->ctx = ctx;

Must ctx be a GEM context handle, or can we use VM handles?
-Chris


More information about the igt-dev mailing list