Re: [Intel-gfx] [PATCH v9 2/6] drm/i915: Convert requests to use struct fence

2016-06-13 Thread Maarten Lankhorst
Op 10-06-16 om 13:26 schreef John Harrison: > On 07/06/2016 12:42, Maarten Lankhorst wrote: >> Op 02-06-16 om 13:07 schreef Tvrtko Ursulin: >>> On 01/06/16 18:07, john.c.harri...@intel.com wrote: From: John Harrison There is a construct in the linux

Re: [Intel-gfx] [PATCH v9 2/6] drm/i915: Convert requests to use struct fence

2016-06-10 Thread John Harrison
On 07/06/2016 12:42, Maarten Lankhorst wrote: Op 02-06-16 om 13:07 schreef Tvrtko Ursulin: On 01/06/16 18:07, john.c.harri...@intel.com wrote: From: John Harrison There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work

Re: [Intel-gfx] [PATCH v9 2/6] drm/i915: Convert requests to use struct fence

2016-06-07 Thread Tvrtko Ursulin
On 07/06/16 12:42, Maarten Lankhorst wrote: Op 02-06-16 om 13:07 schreef Tvrtko Ursulin: [snip] +static inline bool i915_gem_request_completed(struct drm_i915_gem_request *req, + bool lazy_coherency) +{ +return fence_is_signaled(>fence); +} I would squash the

Re: [Intel-gfx] [PATCH v9 2/6] drm/i915: Convert requests to use struct fence

2016-06-07 Thread Maarten Lankhorst
Op 02-06-16 om 13:07 schreef Tvrtko Ursulin: > > On 01/06/16 18:07, john.c.harri...@intel.com wrote: >> From: John Harrison >> >> There is a construct in the linux kernel called 'struct fence' that is >> intended to keep track of work that is executed on hardware. I.e.

Re: [Intel-gfx] [PATCH v9 2/6] drm/i915: Convert requests to use struct fence

2016-06-02 Thread Tvrtko Ursulin
On 01/06/16 18:07, john.c.harri...@intel.com wrote: From: John Harrison There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it solves the basic problem that the drivers 'struct

[Intel-gfx] [PATCH v9 2/6] drm/i915: Convert requests to use struct fence

2016-06-01 Thread John . C . Harrison
From: John Harrison There is a construct in the linux kernel called 'struct fence' that is intended to keep track of work that is executed on hardware. I.e. it solves the basic problem that the drivers 'struct drm_i915_gem_request' is trying to address. The request