mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-22 22:02:57 +00:00
tests: sprinkle igt logging
All the cases that simply dump some debug information and couldn't be converted to some of the fancier macros. Some information output removed when it's redundant with the subtest status. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
@@ -203,11 +203,11 @@ static void run_test(int fd, int count)
|
||||
start += 1024 * 1024 / 4;
|
||||
}
|
||||
|
||||
printf("Verifying initialisation...\n");
|
||||
igt_info("Verifying initialisation...\n");
|
||||
for (i = 0; i < count; i++)
|
||||
check_bo(fd, handle[i], start_val[i]);
|
||||
|
||||
printf("Cyclic blits, forward...\n");
|
||||
igt_info("Cyclic blits, forward...\n");
|
||||
for (i = 0; i < count * 4; i++) {
|
||||
int src = i % count;
|
||||
int dst = (i + 1) % count;
|
||||
@@ -218,7 +218,7 @@ static void run_test(int fd, int count)
|
||||
for (i = 0; i < count; i++)
|
||||
check_bo(fd, handle[i], start_val[i]);
|
||||
|
||||
printf("Cyclic blits, backward...\n");
|
||||
igt_info("Cyclic blits, backward...\n");
|
||||
for (i = 0; i < count * 4; i++) {
|
||||
int src = (i + 1) % count;
|
||||
int dst = i % count;
|
||||
@@ -229,7 +229,7 @@ static void run_test(int fd, int count)
|
||||
for (i = 0; i < count; i++)
|
||||
check_bo(fd, handle[i], start_val[i]);
|
||||
|
||||
printf("Random blits...\n");
|
||||
igt_info("Random blits...\n");
|
||||
for (i = 0; i < count * 4; i++) {
|
||||
int src = random() % count;
|
||||
int dst = random() % count;
|
||||
@@ -270,10 +270,10 @@ int main(int argc, char **argv)
|
||||
|
||||
if (count > intel_get_total_ram_mb() * 9 / 10) {
|
||||
count = intel_get_total_ram_mb() * 9 / 10;
|
||||
printf("not enough RAM to run test, reducing buffer count\n");
|
||||
igt_info("not enough RAM to run test, reducing buffer count\n");
|
||||
}
|
||||
|
||||
printf("Using %d 1MiB buffers\n", count);
|
||||
igt_info("Using %d 1MiB buffers\n", count);
|
||||
}
|
||||
|
||||
igt_subtest("normal")
|
||||
|
||||
Reference in New Issue
Block a user