[igt-dev] [PATCH i-g-t v5 7/8] tests/gem_gpgpu_fill: Remove libdrm dependency

Chris Wilson chris at chris-wilson.co.uk
Tue May 19 18:39:10 UTC 2020


Quoting Zbigniew Kempczyński (2020-05-19 19:16:13)
> +static void no_libdrm(data_t *data, igt_fillfunc_v2_t fill)
> +{
> +       struct intel_buf *buf;
> +       uint8_t *ptr;
> +       int i, j;
> +
> +       buf = create_buf(data, WIDTH, HEIGHT, COLOR_C4);
> +       ptr = gem_mmap__cpu_coherent(data->drm_fd, buf->handle,
> +                                    0, buf->size, PROT_READ);

I see, still testing the theory that you don't need coherency. :-p
-Chris


More information about the igt-dev mailing list