]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/vboxvideo: Implement struct drm_mode_config_funcs.mode_valid
authorThomas Zimmermann <tzimmermann@suse.de>
Mon, 3 Feb 2020 15:52:58 +0000 (16:52 +0100)
committerThomas Zimmermann <tzimmermann@suse.de>
Thu, 6 Feb 2020 09:34:06 +0000 (10:34 +0100)
The implementation of struct drm_mode_config_funcs.mode_valid verifies
that enough video memory is available for a given display mode.

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20200203155258.9346-5-tzimmermann@suse.de
drivers/gpu/drm/vboxvideo/vbox_mode.c

index 8b7f005c4d20f6a530ad10a8af65e5a4ea6a4e2c..0883a435e62b9c9e2dee84fe30145f72e73f0086 100644 (file)
@@ -826,6 +826,7 @@ static int vbox_connector_init(struct drm_device *dev,
 
 static const struct drm_mode_config_funcs vbox_mode_funcs = {
        .fb_create = drm_gem_fb_create_with_dirty,
+       .mode_valid = drm_vram_helper_mode_valid,
        .atomic_check = drm_atomic_helper_check,
        .atomic_commit = drm_atomic_helper_commit,
 };