[igt-dev] [PATCH i-g-t v14 07/33] lib/intel_allocator: Add intel_allocator core
Chris Wilson
chris at chris-wilson.co.uk
Thu Jan 14 16:13:39 UTC 2021
Quoting Zbigniew Kempczyński (2021-01-14 12:22:07)
> +static struct intel_allocator *intel_allocator_create(int fd, uint32_t ctx,
> + uint8_t allocator_type)
> +{
> + struct intel_allocator *ial;
> +
> + switch (allocator_type) {
> + case INTEL_ALLOCATOR_NONE:
> + igt_assert_f(allocator_type != INTEL_ALLOCATOR_NONE,
> + "Bug, trying to use allocator with relocations");
Pardon? if (a == 1) assert(a != 1);
-Chris
More information about the igt-dev
mailing list