aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exynos/exynos_fimg2d_test.c')
-rw-r--r--tests/exynos/exynos_fimg2d_test.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/exynos/exynos_fimg2d_test.c b/tests/exynos/exynos_fimg2d_test.c
index 8ef0eb3a..d89fc231 100644
--- a/tests/exynos/exynos_fimg2d_test.c
+++ b/tests/exynos/exynos_fimg2d_test.c
@@ -214,6 +214,14 @@ static void exynos_destroy_buffer(struct exynos_bo *bo)
214 exynos_bo_destroy(bo); 214 exynos_bo_destroy(bo);
215} 215}
216 216
217static void wait_for_user_input(int last)
218{
219 printf("press <ENTER> to %s\n", last ? "exit test application" :
220 "skip to next test");
221
222 getchar();
223}
224
217static int g2d_solid_fill_test(struct exynos_device *dev, struct exynos_bo *dst) 225static int g2d_solid_fill_test(struct exynos_device *dev, struct exynos_bo *dst)
218{ 226{
219 struct g2d_context *ctx; 227 struct g2d_context *ctx;
@@ -644,7 +652,7 @@ int main(int argc, char **argv)
644 goto err_rm_fb; 652 goto err_rm_fb;
645 } 653 }
646 654
647 getchar(); 655 wait_for_user_input(0);
648 656
649 src = exynos_create_buffer(dev, screen_width * screen_height * 4, 0); 657 src = exynos_create_buffer(dev, screen_width * screen_height * 4, 0);
650 if (!src) { 658 if (!src) {
@@ -658,7 +666,7 @@ int main(int argc, char **argv)
658 goto err_free_src; 666 goto err_free_src;
659 } 667 }
660 668
661 getchar(); 669 wait_for_user_input(0);
662 670
663 ret = test_case.copy_with_scale(dev, src, bo, G2D_IMGBUF_GEM); 671 ret = test_case.copy_with_scale(dev, src, bo, G2D_IMGBUF_GEM);
664 if (ret < 0) { 672 if (ret < 0) {
@@ -666,7 +674,7 @@ int main(int argc, char **argv)
666 goto err_free_src; 674 goto err_free_src;
667 } 675 }
668 676
669 getchar(); 677 wait_for_user_input(1);
670 678
671 /* 679 /*
672 * The blend test uses the userptr functionality of exynos-drm, which 680 * The blend test uses the userptr functionality of exynos-drm, which