提交 4f91fc6d 编写于 作者: F Francisco Jerez 提交者: Daniel Vetter

drm/i915: Hook up ring workaround writes at context creation time on Gen6-7.

intel_rcs_ctx_init() emits all workaround register writes on the list
to the ring, in addition to calling i915_gem_render_state_init().  The
workaround list is currently empty on Gen6-7 so this shouldn't cause
any functional changes.
Signed-off-by: NFrancisco Jerez <currojerez@riseup.net>
Signed-off-by: NDaniel Vetter <daniel.vetter@ffwll.ch>
上级 02235808
...@@ -2623,7 +2623,7 @@ int intel_init_render_ring_buffer(struct drm_device *dev) ...@@ -2623,7 +2623,7 @@ int intel_init_render_ring_buffer(struct drm_device *dev)
GEN8_RING_SEMAPHORE_INIT; GEN8_RING_SEMAPHORE_INIT;
} }
} else if (INTEL_INFO(dev)->gen >= 6) { } else if (INTEL_INFO(dev)->gen >= 6) {
ring->init_context = i915_gem_render_state_init; ring->init_context = intel_rcs_ctx_init;
ring->add_request = gen6_add_request; ring->add_request = gen6_add_request;
ring->flush = gen7_render_ring_flush; ring->flush = gen7_render_ring_flush;
if (INTEL_INFO(dev)->gen == 6) if (INTEL_INFO(dev)->gen == 6)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册