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++/inc/kms++/videomode.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'kms++/inc') diff --git a/kms++/inc/kms++/videomode.h b/kms++/inc/kms++/videomode.h index 74aa8f1..3aacd57 100644 --- a/kms++/inc/kms++/videomode.h +++ b/kms++/inc/kms++/videomode.h @@ -52,6 +52,8 @@ struct Videomode std::string to_string_short() const; std::string to_string_long() const; std::string to_string_long_padded() const; + + bool valid() const; }; struct Videomode videomode_from_timings(uint32_t clock_khz, -- cgit v1.2.3