[igt-dev] [PATCH i-g-t v4 2/3] lib/i915/gem_mman: add mmap_offset support

Chris Wilson chris at chris-wilson.co.uk
Thu Nov 28 14:43:10 UTC 2019


Quoting Zbigniew KempczyƄski (2019-11-26 17:25:55)
> +void *gem_mmap__device_coherent(int fd, uint32_t handle, uint64_t offset,
> +                               uint64_t size, unsigned prot)
> +{
> +       void *ptr;
> +
> +       igt_assert(offset == 0);
> +
> +       ptr = gem_mmap__device_coherent(fd, handle, offset, size, prot);

You meant __gem_mmap__device_coherent()
> +       igt_assert(ptr);
> +
> +       return ptr;
> +}


More information about the igt-dev mailing list