summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-06-24 13:42:20 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2013-06-27 10:19:56 +0200
commit87fc122bcde374d0a5bde853688101870f7f33fa (patch)
treea83a8312799ae52b2664fe074158776506a062e8 /tests
parent100ee623710c05901006b74de62611601e0d97c7 (diff)
modetest: setup source
Diffstat (limited to 'tests')
-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");