]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Move common request allocation code into a common function
authorJohn Harrison <John.C.Harrison@Intel.com>
Thu, 19 Mar 2015 12:30:08 +0000 (12:30 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 1 Apr 2015 05:54:30 +0000 (07:54 +0200)
commit6d9a23305202b33ac38fdf9bf652e4afc287736c
treedd76ba91f3a28cefa1161a16f4fbae2e460d6543
parent314c60b08a269de5eeaa6d127c3ca0fe4a55fc7f
drm/i915: Move common request allocation code into a common function

The request allocation code is largely duplicated between legacy mode and
execlist mode. The actual difference between the two versions of the code is
pretty minimal.

This patch moves the common code out into a separate function. This is then
called by the execution specific version prior to setting up the one different
value.

For: VIZ-5190
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: Tomas Elf <tomas.elf@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gem.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