summaryrefslogtreecommitdiffstats
path: root/commands/fbtest.c
diff options
context:
space:
mode:
authorBastian Stender <bst@pengutronix.de>2017-02-28 15:31:26 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-02-28 15:52:53 +0100
commitb9cf45f00c6e120f58f02f45ef949a7be54da999 (patch)
tree6fdcf7a7e162764a341e6f73c4b99c123b5c0a80 /commands/fbtest.c
parentb4f55fcf355a4d0ac456445a5f42f259f2812b57 (diff)
downloadbarebox-b9cf45f00c6e120f58f02f45ef949a7be54da999.tar.gz
fb: introduce flush for virtual framebuffer
Some drivers need an explicit sync method to flush the virtual framebuffer to the display. It is called fb_flush(). fb_flush() gets called on fbc_putc, on fb_close and in the pattern cycle in the fbtest command. Signed-off-by: Bastian Stender <bst@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/fbtest.c')
-rw-r--r--commands/fbtest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/commands/fbtest.c b/commands/fbtest.c
index bd0e140..ca6ec21 100644
--- a/commands/fbtest.c
+++ b/commands/fbtest.c
@@ -169,6 +169,7 @@ static int do_fbtest(int argc, char *argv[])
pattern = patterns[i++ % ARRAY_SIZE(patterns)].func;
pattern(sc, color);
gu_screen_blit(sc);
+ fb_flush(sc->info);
start = get_time_ns();
while (!is_timeout(start, 2 * SECOND))