Re: [Intel-gfx] [PATCH v2 5/9] drm/i915: Refactor gen8 semaphore offset calculation

2016-04-06 Thread Joonas Lahtinen
On ke, 2016-04-06 at 13:33 +0100, Chris Wilson wrote: > We reuse the same calculation into two macros, and I want to add a third > user. Time to refactor. > > Signed-off-by: Chris Wilson Reviewed-by: Joonas Lahtinen > --- >  drivers/gpu/drm/i915/intel_ringbuffer.h | 11 +-- >  1 file ch

[Intel-gfx] [PATCH v2 5/9] drm/i915: Refactor gen8 semaphore offset calculation

2016-04-06 Thread Chris Wilson
We reuse the same calculation into two macros, and I want to add a third user. Time to refactor. Signed-off-by: Chris Wilson --- drivers/gpu/drm/i915/intel_ringbuffer.h | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/driv