diff options
author | Francisco Jerez <currojerez@riseup.net> | 2015-10-07 07:44:02 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-10-07 10:37:48 -0400 |
commit | 4f91fc6d2c1d98b3da7a8341ef5ec66ccf2916b9 (patch) | |
tree | 2cfd2529d25e3c7fdad3f324aca2400e90755c2d /drivers/gpu/drm/i915/intel_ringbuffer.c | |
parent | 02235808b61cd9382d224b0df263193006dd9913 (diff) |
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: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_ringbuffer.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_ringbuffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_ringbuffer.c b/drivers/gpu/drm/i915/intel_ringbuffer.c index 702d3a2d73b9..654ae991ea13 100644 --- a/drivers/gpu/drm/i915/intel_ringbuffer.c +++ b/drivers/gpu/drm/i915/intel_ringbuffer.c | |||
@@ -2623,7 +2623,7 @@ int intel_init_render_ring_buffer(struct drm_device *dev) | |||
2623 | GEN8_RING_SEMAPHORE_INIT; | 2623 | GEN8_RING_SEMAPHORE_INIT; |
2624 | } | 2624 | } |
2625 | } else if (INTEL_INFO(dev)->gen >= 6) { | 2625 | } else if (INTEL_INFO(dev)->gen >= 6) { |
2626 | ring->init_context = i915_gem_render_state_init; | 2626 | ring->init_context = intel_rcs_ctx_init; |
2627 | ring->add_request = gen6_add_request; | 2627 | ring->add_request = gen6_add_request; |
2628 | ring->flush = gen7_render_ring_flush; | 2628 | ring->flush = gen7_render_ring_flush; |
2629 | if (INTEL_INFO(dev)->gen == 6) | 2629 | if (INTEL_INFO(dev)->gen == 6) |