diff options
author | Daniel Stone <daniels@collabora.com> | 2019-12-16 19:46:43 -0800 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2020-01-14 16:22:17 -0500 |
commit | 455e00f1412fe51fa7bd21ad6fe0015b163fa9e5 (patch) | |
tree | b9cb95512fa3d435c5f284afa8d219d64b892451 /include/uapi/drm | |
parent | 7b6bd84336096851225d06f3b176157f305e09a2 (diff) | |
download | linux-455e00f1412fe51fa7bd21ad6fe0015b163fa9e5.tar.gz linux-455e00f1412fe51fa7bd21ad6fe0015b163fa9e5.tar.bz2 linux-455e00f1412fe51fa7bd21ad6fe0015b163fa9e5.zip |
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
Diffstat (limited to 'include/uapi/drm')
-rw-r--r-- | include/uapi/drm/drm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h index 868bf7996c0f..808b48a93330 100644 --- a/include/uapi/drm/drm.h +++ b/include/uapi/drm/drm.h @@ -948,6 +948,8 @@ extern "C" { #define DRM_IOCTL_SYNCOBJ_TRANSFER DRM_IOWR(0xCC, struct drm_syncobj_transfer) #define DRM_IOCTL_SYNCOBJ_TIMELINE_SIGNAL DRM_IOWR(0xCD, struct drm_syncobj_timeline_array) +#define DRM_IOCTL_MODE_GETFB2 DRM_IOWR(0xCE, struct drm_mode_fb_cmd2) + /** * Device specific ioctls should only be in their respective headers * The device specific ioctl range is from 0x40 to 0x9f. |