summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/modetest/modetest.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/modetest/modetest.c b/tests/modetest/modetest.c
index a9a09105..c1b2a72b 100644
--- a/tests/modetest/modetest.c
+++ b/tests/modetest/modetest.c
@@ -764,6 +764,7 @@ struct pipe_arg {
struct plane_arg {
uint32_t crtc_id; /* the id of CRTC to bind to */
+ uint32_t source_id;
bool has_position;
int32_t x, y;
uint32_t w, h;
@@ -1311,6 +1312,10 @@ static int parse_plane(struct plane_arg *plane, const char *p)
memset(plane, 0, sizeof *plane);
plane->crtc_id = strtoul(p, &end, 10);
+ if (*end == '@') {
+ p = end + 1;
+ plane->source_id = strtoul(p, &end, 10);
+ }
if (*end != ':')
return -EINVAL;
@@ -1372,7 +1377,7 @@ static void usage(char *name)
fprintf(stderr, "\t-p\tlist CRTCs, planes and sources (pipes)\n");
fprintf(stderr, "\n Test options:\n\n");
- fprintf(stderr, "\t-P <crtc_id>:<w>x<h>[+<x>+<y>][@<format>]\tset a plane\n");
+ fprintf(stderr, "\t-P <crtc_id>[@<source_id>]:<w>x<h>[+<x>+<y>][@<format>]\tset a plane\n");
fprintf(stderr, "\t-s <connector_id>[,<connector_id>][@<crtc_id>]:<mode>[@<format>]\tset a mode\n");
fprintf(stderr, "\t-v\ttest vsynced page flipping\n");
fprintf(stderr, "\t-w <obj_id>:<prop_name>:<value>\tset property\n");