aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_ringbuffer.c
diff options
context:
space:
mode:
authorOscar Mateo <oscar.mateo@intel.com>2017-04-10 10:34:30 -0400
committerChris Wilson <chris@chris-wilson.co.uk>2017-04-11 07:57:51 -0400
commit5ff36d36a36d55c8bd4bc937b6a9450b72853c5f (patch)
treee6fd8c0bcf59618fbdef8d9b6868d1cdb84a23d0 /drivers/gpu/drm/i915/intel_ringbuffer.c
parent0908180b9a1cf8c5410d0c1151894fae710744dc (diff)
drm/i915: Use the same vfunc for BSD2 ring init
If we needed to do something different for the init functions, we could always look at the engine instance to make the distinction. But, in any case, the two functions are virtually identical already (please notice that BSD2_RING is only used from gen8 onwards). With this, the init functions depends excusively on the engine class (a fact that we will use soon). v2: Commit message Cc: Paulo Zanoni <paulo.r.zanoni@intel.com> Cc: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com> Signed-off-by: Oscar Mateo <oscar.mateo@intel.com> Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1491834873-9345-3-git-send-email-oscar.mateo@intel.com Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r--drivers/gpu/drm/i915/intel_ringbuffer.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c
index 97d5fcca8805..833740bf49c9 100644
--- a/drivers/gpu/drm/i915/intel_ringbuffer.c
+++ b/drivers/gpu/drm/i915/intel_ringbuffer.c
@@ -2175,20 +2175,6 @@ int intel_init_bsd_ring_buffer(struct intel_engine_cs *engine)
2175 return intel_init_ring_buffer(engine); 2175 return intel_init_ring_buffer(engine);
2176} 2176}
2177 2177
2178/**
2179 * Initialize the second BSD ring (eg. Broadwell GT3, Skylake GT3)
2180 */
2181int intel_init_bsd2_ring_buffer(struct intel_engine_cs *engine)
2182{
2183 struct drm_i915_private *dev_priv = engine->i915;
2184
2185 intel_ring_default_vfuncs(dev_priv, engine);
2186
2187 engine->emit_flush = gen6_bsd_ring_flush;
2188
2189 return intel_init_ring_buffer(engine);
2190}
2191
2192int intel_init_blt_ring_buffer(struct intel_engine_cs *engine) 2178int intel_init_blt_ring_buffer(struct intel_engine_cs *engine)
2193{ 2179{
2194 struct drm_i915_private *dev_priv = engine->i915; 2180 struct drm_i915_private *dev_priv = engine->i915;