drm/i915: Refactor gen8 semaphore offset calculation
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 7 Apr 2016 06:29:14 +0000 (07:29 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 Apr 2016 10:43:48 +0000 (11:43 +0100)
commit8c12672ee2d386924c65c3bbb30bf0da415b2918
tree9d5b58bfa88b6febdff6885cef5fca887cba300d
parent29dcb570264ce1d887ba8ac729ec2103abf1802e
drm/i915: Refactor gen8 semaphore offset calculation

We reuse the same calculation into two macros, and I want to add a third
user. Time to refactor.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1460010558-10705-5-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_ringbuffer.h