drm: Add getfb2 ioctl
authorDaniel Stone <daniels@collabora.com>
Tue, 17 Dec 2019 03:46:43 +0000 (19:46 -0800)
committerLyude Paul <lyude@redhat.com>
Tue, 14 Jan 2020 21:22:17 +0000 (16:22 -0500)
commit455e00f1412fe51fa7bd21ad6fe0015b163fa9e5
treeb9cb95512fa3d435c5f284afa8d219d64b892451
parent7b6bd84336096851225d06f3b176157f305e09a2
drm: Add getfb2 ioctl

getfb2 allows us to pass multiple planes and modifiers, just like addfb2
over addfb.

Changes since v2:
 - add privilege checks from getfb1 since handles should only be
   returned to master/root

Changes since v1:
 - unused modifiers set to 0 instead of DRM_FORMAT_MOD_INVALID
 - update ioctl number

Signed-off-by: Daniel Stone <daniels@collabora.com>
Signed-off-by: Juston Li <juston.li@intel.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191217034642.3814-1-juston.li@intel.com
drivers/gpu/drm/drm_crtc_internal.h
drivers/gpu/drm/drm_framebuffer.c
drivers/gpu/drm/drm_ioctl.c
include/uapi/drm/drm.h