From 36f42004d8f084775efd92a559996ecaeefb0cda Mon Sep 17 00:00:00 2001 From: Tomi Valkeinen Date: Fri, 15 May 2020 11:08:03 +0300 Subject: kmstest: allow enabling output without anything connected Allow kmstest to enable an output without anything connected, if the user gives a videomode. DRM framework allows this, and is needed for testing. Signed-off-by: Tomi Valkeinen --- kms++/src/videomode.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'kms++/src/videomode.cpp') diff --git a/kms++/src/videomode.cpp b/kms++/src/videomode.cpp index b53f0c0..066896f 100644 --- a/kms++/src/videomode.cpp +++ b/kms++/src/videomode.cpp @@ -12,6 +12,11 @@ using namespace std; namespace kms { +bool Videomode::valid() const +{ + return !!clock; +} + unique_ptr Videomode::to_blob(Card& card) const { drmModeModeInfo drm_mode = video_mode_to_drm_mode(*this); -- cgit v1.2.3