[igt-dev] [PATCH i-g-t v3] tests/i915/gem_exec_schedule.c: Switch to gem_sync and gem_read

Chris Wilson chris at chris-wilson.co.uk
Fri Feb 15 00:34:19 UTC 2019


Quoting Antonio Argenziano (2019-02-15 00:29:10)
> +static inline
> +void __sync_read_u32_count(int fd, uint32_t handle, uint32_t *dst, uint64_t size)

Some callers are passing bytes, some count.

> +{
> +       gem_sync(fd, handle); /* No write hazard lies! */
> +       gem_read(fd, handle, 0, dst, size);
> +}


More information about the igt-dev mailing list