drm: warn if cursor plane is set with legacy funcs
authorSimon Ser <contact@emersion.fr>
Tue, 22 Dec 2020 13:40:02 +0000 (14:40 +0100)
committerSimon Ser <contact@emersion.fr>
Mon, 4 Jan 2021 10:33:23 +0000 (11:33 +0100)
commit9a01105389c92026ad483c2b214e5943c6e4b384
tree76de4bcc4191eea47808787fd75436964067ced9
parent1f20bf5921de420071fdb1d55cda7550ae137bcd
drm: warn if cursor plane is set with legacy funcs

A driver must not set drm_crtc.cursor and any of the legacy funcs at the
same time, otherwise it's not clear which one DRM core should use for
legacy cursor updates.

Signed-off-by: Simon Ser <contact@emersion.fr>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20201222134002.161613-1-contact@emersion.fr
drivers/gpu/drm/drm_mode_config.c