OSDN Git Service

drm/i915: Add a cursor hack to allow converting legacy page flip to atomic, v3.
authorMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Mon, 12 Dec 2016 10:34:55 +0000 (11:34 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 19 Dec 2016 16:48:52 +0000 (17:48 +0100)
commitf79f26921ee12c6fc14d0df61b1eb27a5070b959
tree4a815965802a87ed8e39dfac5f30068d49054e47
parentf2b0feeb2e1f33fa6f050935e84d99c714bdb73d
drm/i915: Add a cursor hack to allow converting legacy page flip to atomic, v3.

Do something similar to vc4, only allow updating the cursor state
in-place through a fastpath when the watermarks are unaffected. This
will allow cursor movement to be smooth, but changing cursor size or
showing/hiding cursor will still fall back so watermarks can be updated.

Only moving and changing fb is allowed.

Changes since v1:
- Set page flip to always_unused for trybot.
- Copy fence correctly, ignore plane_state->state, should be NULL.
- Check crtc_state for !active and modeset, go to slowpath if the case.
Changes since v2:
- Make error handling work correctly. (Matthew Auld)

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/a8e4cb00-5171-14e5-bbe3-dadb654ff296@linux.intel.com
drivers/gpu/drm/i915/intel_atomic_plane.c
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h