drm/i915/guc: Refactor the retrieval of guc_process_desc
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Mar 2017 23:00:00 +0000 (23:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Mar 2017 15:20:34 +0000 (15:20 +0000)
commitbd00e73ede5933322e01fc9b32e91d85826ac1c2
tree7315df9bab47e5b277533b88c7fb0af03a95c002
parent2e70b8c6bf0003bf1691ac5cab5aff128747d494
drm/i915/guc: Refactor the retrieval of guc_process_desc

Move the common "client->vaddr + client->proc_desc_offset" to its own
function, __get_process_desc() to match the newly established pattern.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170323230000.20786-1-chris@chris-wilson.co.uk
Reviewed-by: MichaƂ Winiarski <michal.winiarski@intel.com>
drivers/gpu/drm/i915/i915_guc_submission.c