summaryrefslogtreecommitdiff
path: root/utils/kmstest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/kmstest.cpp')
-rw-r--r--utils/kmstest.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/utils/kmstest.cpp b/utils/kmstest.cpp
index 36f7409..76b64ca 100644
--- a/utils/kmstest.cpp
+++ b/utils/kmstest.cpp
@@ -400,6 +400,7 @@ static const char* usage_str =
"Show a test pattern on a display or plane\n\n"
"Options:\n"
" --device=DEVICE DEVICE is the path to DRM card to open\n"
+ " -C, --card=NUM open /dev/dri/card<NUM>\n"
" -c, --connector=CONN CONN is <connector>\n"
" -r, --crtc=CRTC CRTC is [<crtc>:]<w>x<h>[@<Hz>]\n"
" or\n"
@@ -471,6 +472,10 @@ static vector<Arg> parse_cmdline(int argc, char** argv)
[&](string s) {
s_device_path = s;
}),
+ Option("C|card=",
+ [&](string s) {
+ s_device_path = "/dev/dri/card" + s;
+ }),
Option("c|connector=",
[&](string s) {
args.push_back(Arg{ ArgType::Connector, s });