drm/i915: Swap if(enable_execlists) in i915_gem_request_alloc for a vfunc
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Dec 2016 15:37:24 +0000 (15:37 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 18 Dec 2016 16:18:56 +0000 (16:18 +0000)
commitf73e73999d39a274adb8b342d7d8e722ffcf92d5
tree24b35ee2a1a8d34e230f05e0960fcfd51daa40b4
parent2947e4080f22b63b46dbbb95e838396b58a9914b
drm/i915: Swap if(enable_execlists) in i915_gem_request_alloc for a vfunc

A fairly trivial move of a matching pair of routines (for preparing a
request for construction) onto an engine vfunc. The ulterior motive is
to be able to create a mock request implementation.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161218153724.8439-7-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_request.c
drivers/gpu/drm/i915/intel_lrc.c
drivers/gpu/drm/i915/intel_lrc.h
drivers/gpu/drm/i915/intel_ringbuffer.c
drivers/gpu/drm/i915/intel_ringbuffer.h