Re: [Mesa-dev] [PATCH 7/7] i965/sync: Implement DRI2_Fence extension

2015-05-05 Thread Chad Versace
On Mon 04 May 2015, Daniel Stone wrote: > Hi, > > On 1 May 2015 at 21:02, Chad Versace 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

Re: [Mesa-dev] [PATCH 7/7] i965/sync: Implement DRI2_Fence extension

2015-05-04 Thread Daniel Stone
Hi, On 1 May 2015 at 21:02, Chad Versace 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); > +

[Mesa-dev] [PATCH 7/7] i965/sync: Implement DRI2_Fence extension

2015-05-01 Thread Chad Versace
From: Chad Versace This enables EGL_KHR_fence_sync and EGL_KHR_wait_sync. Below is the difference in piglit results, before and after this patch. No regressions and several tests improve from 'skip' to 'pass'. Out of EGL_KHR_fence_sync tests, two of the multithreaded tests skip; all other tests