[Intel-gfx] [PATCH 1/2] drm/i915: make CRTC enable/disable asynchronous v2
Chris Wilson
chris at chris-wilson.co.uk
Fri May 30 20:53:28 CEST 2014
On Fri, May 30, 2014 at 11:05:21AM -0700, Jesse Barnes wrote:
> @@ -8166,6 +8296,8 @@ static int intel_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
> intel_crtc->cursor_x = clamp_t(int, x, SHRT_MIN, SHRT_MAX);
> intel_crtc->cursor_y = clamp_t(int, y, SHRT_MIN, SHRT_MAX);
>
> + intel_sync_crtcs(crtc->dev->dev_private);
> +
> if (intel_crtc->active)
> intel_crtc_update_cursor(crtc, intel_crtc->cursor_bo != NULL);
>
Since the pending CRTC enable/disable will set the cursor anyway, this
sync could be avoided if intel_crtc->active was accurate.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
More information about the Intel-gfx
mailing list