From 87fc122bcde374d0a5bde853688101870f7f33fa Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Mon, 24 Jun 2013 13:42:20 +0200 Subject: modetest: setup source --- tests/modetest/modetest.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 :x[++][@]\tset a plane\n"); + fprintf(stderr, "\t-P [@]:x[++][@]\tset a plane\n"); fprintf(stderr, "\t-s [,][@]:[@]\tset a mode\n"); fprintf(stderr, "\t-v\ttest vsynced page flipping\n"); fprintf(stderr, "\t-w ::\tset property\n"); -- cgit v1.2.3