drm: remove allow_fb_modifiers
authorTomohito Esaki <etom@igel.co.jp>
Fri, 28 Jan 2022 06:08:36 +0000 (15:08 +0900)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 31 Jan 2022 20:45:24 +0000 (21:45 +0100)
The allow_fb_modifiers flag is unnecessary since it has been replaced
with fb_modifiers_not_supported flag.

v3:
 - change the order as follows:
   1. add fb_modifiers_not_supported flag
   2. add default modifiers
   3. remove allow_fb_modifiers flag

v5:
 - keep a sanity check in plane init func

Signed-off-by: Tomohito Esaki <etom@igel.co.jp>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220128060836.11216-4-etom@igel.co.jp
drivers/gpu/drm/selftests/test-drm_framebuffer.c
include/drm/drm_mode_config.h

index 61b44d3a6a61928d56fb1eb8b9f73f1d206927f4..f6d66285c5fc6b47b26f1b27cf7e230566e128af 100644 (file)
@@ -323,7 +323,6 @@ static struct drm_device mock_drm_device = {
                .max_width = MAX_WIDTH,
                .min_height = MIN_HEIGHT,
                .max_height = MAX_HEIGHT,
-               .allow_fb_modifiers = true,
                .funcs = &mock_config_funcs,
        },
 };
index 4a93dac91cf981800cbf8b614c69b5af49019670..6b5e012953484a56855a7453e6094d7e838ec8bd 100644 (file)
@@ -917,22 +917,6 @@ struct drm_mode_config {
         */
        bool async_page_flip;
 
-       /**
-        * @allow_fb_modifiers:
-        *
-        * Whether the driver supports fb modifiers in the ADDFB2.1 ioctl call.
-        * Note that drivers should not set this directly, it is automatically
-        * set in drm_universal_plane_init().
-        *
-        * IMPORTANT:
-        *
-        * If this is set the driver must fill out the full implicit modifier
-        * information in their &drm_mode_config_funcs.fb_create hook for legacy
-        * userspace which does not set modifiers. Otherwise the GETFB2 ioctl is
-        * broken for modifier aware userspace.
-        */
-       bool allow_fb_modifiers;
-
        /**
         * @fb_modifiers_not_supported:
         *