aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.h
diff options
context:
space:
mode:
authorJohn Harrison <John.C.Harrison@Intel.com>2015-03-19 08:30:08 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-04-01 01:54:30 -0400
commit6689cb2b62065b5417aeda13d57d61b437b2126e (patch)
treedd76ba91f3a28cefa1161a16f4fbae2e460d6543 /drivers/gpu/drm/i915/intel_ringbuffer.h
parentbc0dce3fd0526215aa781c28069519d126d50129 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.h')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.h b/drivers/gpu/drm/i915/intel_ringbuffer.h
index c761fe05ad6f..6566dd447498 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.h
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.h
@@ -390,6 +390,8 @@ int intel_alloc_ringbuffer_obj(struct drm_device *dev,
390void intel_stop_ring_buffer(struct intel_engine_cs *ring); 390void intel_stop_ring_buffer(struct intel_engine_cs *ring);
391void intel_cleanup_ring_buffer(struct intel_engine_cs *ring); 391void intel_cleanup_ring_buffer(struct intel_engine_cs *ring);
392 392
393int intel_ring_alloc_request_extras(struct drm_i915_gem_request *request);
394
393int __must_check intel_ring_begin(struct intel_engine_cs *ring, int n); 395int __must_check intel_ring_begin(struct intel_engine_cs *ring, int n);
394int __must_check intel_ring_cacheline_align(struct intel_engine_cs *ring); 396int __must_check intel_ring_cacheline_align(struct intel_engine_cs *ring);
395static inline void intel_ring_emit(struct intel_engine_cs *ring, 397static inline void intel_ring_emit(struct intel_engine_cs *ring,