[Mesa-dev] [PATCH v2 8/9] anv: Use DRM sync objects for external semaphores when available
Jason Ekstrand
jason at jlekstrand.net
Fri Aug 4 16:30:05 UTC 2017
On Fri, Aug 4, 2017 at 2:03 AM, Chris Wilson <chris at chris-wilson.co.uk>
wrote:
> 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);
>
Good call.
> > + 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;
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170804/b96eb733/attachment.html>
More information about the mesa-dev
mailing list