drm: Introduce __setplane_atomic()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 5 Jul 2018 18:59:07 +0000 (21:59 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 13 Jul 2018 14:58:19 +0000 (17:58 +0300)
commite7695eb6ea70ed143fafbcd12ce69886be3aa03d
treed330c4b1c1d632e4be25a85e361b20f8e867985c
parent4dd4677c2d3d34a2bcd511c088da4535ea58e360
drm: Introduce __setplane_atomic()

All the plane->fb/old_fb/crtc dance of __setplane_internal() is
pointless on atomic drivers. So let's just introduce a simpler
version that skips all that.

Ideally we could also skip the __setplane_check() as
drm_atomic_plane_check() already checks for everything, but the
legacy cursor/"async" .update_plane() tricks bypass that so
we still need to call __setplane_check(). Toss in a FIXME to
remind someone to clean this up later.

v2: Use drm_drv_uses_atomic_modeset() (Daniel)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20180705185907.9524-1-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_plane.c