drm/i915/bdw: Don't write PDP in the legacy way when using LRCs
[cascardo/linux.git] / drivers / gpu / drm / i915 / i915_gem_gtt.c
index d97b280..4db2370 100644 (file)
@@ -826,6 +826,12 @@ static void gen8_ppgtt_enable(struct drm_device *dev)
        struct intel_engine_cs *ring;
        int j;
 
+       /* In the case of execlists, PPGTT is enabled by the context descriptor
+        * and the PDPs are contained within the context itself.  We don't
+        * need to do anything here. */
+       if (i915.enable_execlists)
+               return;
+
        for_each_ring(ring, dev_priv, j) {
                I915_WRITE(RING_MODE_GEN7(ring),
                           _MASKED_BIT_ENABLE(GFX_PPGTT_ENABLE));