On Fri, Aug 4, 2017 at 2:03 AM, Chris Wilson <ch...@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;
>
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to