mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
drm: remove allow_fb_modifiers
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 <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Laurent Pinchart <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
committed by
Daniel Vetter
parent
8be576837b
commit
3d082157a2
@@ -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,
|
||||
},
|
||||
};
|
||||
|
||||
@@ -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:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user