drm/qxl: add mode/framebuffer check functions
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 18 Jan 2019 12:20:17 +0000 (13:20 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 28 Jan 2019 13:24:53 +0000 (14:24 +0100)
commitfeba24de7003d93fd156bb72763283832b8af3d6
tree7aacbc03dd6e6df0f3f21936a1619ac83117bbbb
parent182e7f96f0cb7878d7e001cf9176aae56283f233
drm/qxl: add mode/framebuffer check functions

Add a helper functions to check video modes.  Also add a helper to check
framebuffer buffer objects, using the former for consistency.  That way
we should not fail in qxl_primary_atomic_check() because video modes
which are too big will not be added to the mode list in the first place.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Acked-by: Noralf Trønnes <noralf@tronnes.org>
Link: http://patchwork.freedesktop.org/patch/msgid/20190118122020.27596-21-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_display.c