diff options
Diffstat (limited to 'tests/gen3_render_tiledy_blits.c')
-rw-r--r-- | tests/gen3_render_tiledy_blits.c | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/tests/gen3_render_tiledy_blits.c b/tests/gen3_render_tiledy_blits.c index 8c6597ea..fa2079ae 100644 --- a/tests/gen3_render_tiledy_blits.c +++ b/tests/gen3_render_tiledy_blits.c @@ -438,45 +438,52 @@ int main(int argc, char **argv) start += 1024 * 1024 / 4; } - printf("Verifying initialisation...\n"); + printf("Verifying initialisation..."); fflush(stdout); for (i = 0; i < count; i++) check_bo(fd, handle[i], start_val[i]); + printf("done\n"); - printf("Cyclic blits, forward...\n"); - for (i = 0; i < count * 4; i++) { + printf("Cyclic blits, forward..."); fflush(stdout); + for (i = 0; i < count * 32; i++) { int src = i % count; int dst = (i + 1) % count; copy(fd, handle[dst], handle[src]); start_val[dst] = start_val[src]; } + printf("verifying..."); fflush(stdout); for (i = 0; i < count; i++) check_bo(fd, handle[i], start_val[i]); + printf("done\n"); - printf("Cyclic blits, backward...\n"); - for (i = 0; i < count * 4; i++) { + printf("Cyclic blits, backward..."); fflush(stdout); + for (i = 0; i < count * 32; i++) { int src = (i + 1) % count; int dst = i % count; copy(fd, handle[dst], handle[src]); start_val[dst] = start_val[src]; } + printf("verifying..."); fflush(stdout); for (i = 0; i < count; i++) check_bo(fd, handle[i], start_val[i]); + printf("done\n"); - printf("Random blits...\n"); - for (i = 0; i < count * 4; i++) { + printf("Random blits..."); fflush(stdout); + for (i = 0; i < count * 32; i++) { int src = random() % count; int dst = random() % count; - if (src == dst) - continue; + while (src == dst) + dst = random() % count; copy(fd, handle[dst], handle[src]); start_val[dst] = start_val[src]; } + printf("verifying..."); fflush(stdout); for (i = 0; i < count; i++) check_bo(fd, handle[i], start_val[i]); + printf("done\n"); return 0; } |