drm: Use atomic state for FB in legacy ioctls
authorDaniel Stone <daniels@collabora.com>
Tue, 13 Dec 2016 18:19:12 +0000 (18:19 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 13 Dec 2016 21:22:08 +0000 (22:22 +0100)
commitde7b6be7f3009fef47a2ca0df237a055147b6d25
tree2a865eb661764657c52390f4c2896e7faa3c94d2
parentaf913418261d6d3e7a29f06cf35f04610ead667c
drm: Use atomic state for FB in legacy ioctls

If atomic state is available, use this to read the current plane in
GetCrtc/GetPlane, rather than the legacy points.

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