drm/i915/skl: Correcting the flushing of pipe
[linux-2.6-block.git] / drivers / gpu / drm / i915 / intel_pm.c
index 0f7ceba2032f74af080a2de9678bb26094ced83e..8a960d19374b0a9baad87180046e64c3154f48aa 100644 (file)
@@ -3004,9 +3004,8 @@ static void skl_flush_wm_values(struct drm_i915_private *dev_priv,
                    skl_ddb_entry_size(&cur_ddb->pipe[pipe])) {
                        skl_wm_flush_pipe(dev_priv, pipe, 2);
                        intel_wait_for_vblank(dev, pipe);
+                       reallocated[pipe] = true;
                }
-
-               reallocated[pipe] = true;
        }
 
        /*