[Mesa-dev] [PATCH 7/7] i965/sync: Implement DRI2_Fence extension
Chad Versace
chad.versace at intel.com
Tue May 5 19:09:57 PDT 2015
On Mon 04 May 2015, Daniel Stone wrote:
> Hi,
>
> On 1 May 2015 at 21:02, Chad Versace <chad.versace at intel.com> wrote:
> > +static bool
> > +brw_fence_has_completed(struct brw_fence *fence)
> > +{
> > + if (fence->signalled)
> > + return true;
> > +
> > + if (fence->batch_bo && !drm_intel_bo_busy(fence->batch_bo)) {
> > + drm_intel_bo_unreference(fence->batch_bo);
> > + fence->batch_bo = NULL;
>
> Should this branch be setting fence->signalled = true as well, to
> match client_wait?
Right. I'll add
fence->signalled = true;
to that branch before pushing.
> The rest looks good to me, going on what I remember of having looked
> at this about 5 years ago, so:
> Reviewed-by: Daniel Stone <daniels at collabora.com>
More information about the mesa-dev
mailing list