|
@@ -13007,17 +13007,6 @@ static int intel_atomic_commit(struct drm_device *dev,
|
|
|
struct drm_i915_private *dev_priv = to_i915(dev);
|
|
struct drm_i915_private *dev_priv = to_i915(dev);
|
|
|
int ret = 0;
|
|
int ret = 0;
|
|
|
|
|
|
|
|
- /*
|
|
|
|
|
- * The intel_legacy_cursor_update() fast path takes care
|
|
|
|
|
- * of avoiding the vblank waits for simple cursor
|
|
|
|
|
- * movement and flips. For cursor on/off and size changes,
|
|
|
|
|
- * we want to perform the vblank waits so that watermark
|
|
|
|
|
- * updates happen during the correct frames. Gen9+ have
|
|
|
|
|
- * double buffered watermarks and so shouldn't need this.
|
|
|
|
|
- */
|
|
|
|
|
- if (INTEL_GEN(dev_priv) < 9)
|
|
|
|
|
- state->legacy_cursor_update = false;
|
|
|
|
|
-
|
|
|
|
|
ret = drm_atomic_helper_setup_commit(state, nonblock);
|
|
ret = drm_atomic_helper_setup_commit(state, nonblock);
|
|
|
if (ret)
|
|
if (ret)
|
|
|
return ret;
|
|
return ret;
|
|
@@ -13033,6 +13022,26 @@ static int intel_atomic_commit(struct drm_device *dev,
|
|
|
return ret;
|
|
return ret;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
|
+ * The intel_legacy_cursor_update() fast path takes care
|
|
|
|
|
+ * of avoiding the vblank waits for simple cursor
|
|
|
|
|
+ * movement and flips. For cursor on/off and size changes,
|
|
|
|
|
+ * we want to perform the vblank waits so that watermark
|
|
|
|
|
+ * updates happen during the correct frames. Gen9+ have
|
|
|
|
|
+ * double buffered watermarks and so shouldn't need this.
|
|
|
|
|
+ *
|
|
|
|
|
+ * Do this after drm_atomic_helper_setup_commit() and
|
|
|
|
|
+ * intel_atomic_prepare_commit() because we still want
|
|
|
|
|
+ * to skip the flip and fb cleanup waits. Although that
|
|
|
|
|
+ * does risk yanking the mapping from under the display
|
|
|
|
|
+ * engine.
|
|
|
|
|
+ *
|
|
|
|
|
+ * FIXME doing watermarks and fb cleanup from a vblank worker
|
|
|
|
|
+ * (assuming we had any) would solve these problems.
|
|
|
|
|
+ */
|
|
|
|
|
+ if (INTEL_GEN(dev_priv) < 9)
|
|
|
|
|
+ state->legacy_cursor_update = false;
|
|
|
|
|
+
|
|
|
drm_atomic_helper_swap_state(state, true);
|
|
drm_atomic_helper_swap_state(state, true);
|
|
|
dev_priv->wm.distrust_bios_wm = false;
|
|
dev_priv->wm.distrust_bios_wm = false;
|
|
|
intel_shared_dpll_swap_state(state);
|
|
intel_shared_dpll_swap_state(state);
|