This is a spec requirement for all rings.

Signed-off-by: Ben Widawsky <b...@bwidawsk.net>
---
 drivers/gpu/drm/i915/i915_gem_context.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_gem_context.c 
b/drivers/gpu/drm/i915/i915_gem_context.c
index 5b4a9a0..1ac648f 100644
--- a/drivers/gpu/drm/i915/i915_gem_context.c
+++ b/drivers/gpu/drm/i915/i915_gem_context.c
@@ -870,6 +870,9 @@ int i915_switch_context(struct intel_engine_cs *ring,
        if (from == to && !to->remap_slice)
                return 0;
 
+       if (IS_GEN8(ring->dev))
+               WARN_ON(ring->flush(ring, I915_GEM_GPU_DOMAINS, 0));
+
        if (ring->id == RCS)
                return do_switch_rcs(ring, from, to);
        else
-- 
2.0.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to