summaryrefslogtreecommitdiff
path: root/lib/drmtest.c
diff options
context:
space:
mode:
authorYi Sun <yi.sun@intel.com>2012-07-26 14:23:36 +0800
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-07-26 15:01:08 +0200
commit41fe811feb5c79c760f5d2e9fe5d1671f6d71ff8 (patch)
tree46eca20e7612391f44ce2107eb7b979639eb8ec9 /lib/drmtest.c
parent3b0f80308a033633be6b903fa2a55128dfd99339 (diff)
tests/testdisplay.c: Add a option '-r'.
With the option '-r', the testdisplay could paint a 2-D bar code(QR bar code) on the screen. The word "pass" is hiden in the bar code image. Further more, with this option, testdisplay will wait until a system signal 'SIGUSR1' coming after each mode setting. This function is for another program to control testdisplay. danvet: Fix up the missing static. Signed-off-by: Yi Sun <yi.sun@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib/drmtest.c')
-rw-r--r--lib/drmtest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 34db1261..2101f6a9 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -774,5 +774,6 @@ void kmstest_dump_mode(drmModeModeInfo *mode)
mode->flags,
mode->type,
mode->clock);
+ fflush(stdout);
}