[Mesa-dev] [PATCH v2 8/9] anv: Use DRM sync objects for external semaphores when available
Chris Wilson
chris at chris-wilson.co.uk
Fri Aug 4 09:03:15 UTC 2017
Quoting Jason Ekstrand (2017-08-04 02:25:27)
> @@ -1497,6 +1569,12 @@ anv_cmd_buffer_execbuf(struct anv_device *device,
> setup_empty_execbuf(&execbuf, device);
> }
>
> + if (execbuf.fence_count > 0) {
For sanity, since I just had to check, assert(device->has_syncobj);
> + execbuf.execbuf.flags |= I915_EXEC_FENCE_ARRAY;
> + execbuf.execbuf.num_cliprects = execbuf.fence_count;
> + execbuf.execbuf.cliprects_ptr = (uintptr_t) execbuf.fences;
> + }
> +
> if (in_fence != -1) {
> execbuf.execbuf.flags |= I915_EXEC_FENCE_IN;
> execbuf.execbuf.rsvd2 |= (uint32_t)in_fence;
More information about the mesa-dev
mailing list