diff options
-rw-r--r-- | utils/kmstest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp index aecb089..1c2d086 100644 --- a/utils/kmstest.cpp +++ b/utils/kmstest.cpp @@ -234,7 +234,12 @@ static void parse_crtc(ResourceManager& resman, Card& card, const string& crtc_s EXIT("Failed to parse crtc option '%s'", crtc_str.c_str()); } - if (!resman.reserve_crtc(output.crtc)) + if (output.crtc) + output.crtc = resman.reserve_crtc(output.crtc); + else + output.crtc = resman.reserve_crtc(output.connector); + + if (!output.crtc) EXIT("Could not find available crtc"); } |