@@ -337,10 +337,8 @@ mi_set_context(struct intel_ring_buffer *ring,
if (ret)
return ret;
- if (IS_GEN7(ring->dev))
- intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_DISABLE);
- else
- intel_ring_emit(ring, MI_NOOP);
+ /* w/a */
+ intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_DISABLE);
intel_ring_emit(ring, MI_NOOP);
intel_ring_emit(ring, MI_SET_CONTEXT);
@@ -352,10 +350,7 @@ mi_set_context(struct intel_ring_buffer *ring,
/* w/a: MI_SET_CONTEXT must always be followed by MI_NOOP */
intel_ring_emit(ring, MI_NOOP);
- if (IS_GEN7(ring->dev))
- intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_ENABLE);
- else
- intel_ring_emit(ring, MI_NOOP);
+ intel_ring_emit(ring, MI_ARB_ON_OFF | MI_ARB_ENABLE);
intel_ring_advance(ring);
VLV needs it, HSW needs it, and it shouldn't hurt on SNB. Signed-off-by: Ben Widawsky <ben@bwidawsk.net> --- drivers/gpu/drm/i915/i915_gem_context.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)