mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
lib: add a function to indicate activity
Signed-off-by: Thomas Wood <thomas.wood@intel.com>
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
#include "igt_debugfs.h"
|
||||
#include "igt_kms.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "igt_aux.h"
|
||||
|
||||
#ifndef DRM_CAP_CURSOR_WIDTH
|
||||
#define DRM_CAP_CURSOR_WIDTH 0x8
|
||||
@@ -105,7 +106,7 @@ static void do_single_test(data_t *data, int x, int y)
|
||||
igt_plane_t *cursor;
|
||||
cairo_t *cr = igt_get_cairo_ctx(data->drm_fd, &data->primary_fb);
|
||||
|
||||
igt_info("."); fflush(stdout);
|
||||
igt_print_activity();
|
||||
|
||||
/* Hardware test */
|
||||
igt_paint_test_pattern(cr, data->screenw, data->screenh);
|
||||
|
||||
@@ -33,6 +33,7 @@
|
||||
#include "igt_kms.h"
|
||||
#include "ioctl_wrappers.h"
|
||||
#include "intel_chipset.h"
|
||||
#include "igt_aux.h"
|
||||
|
||||
typedef struct {
|
||||
int drm_fd;
|
||||
@@ -173,8 +174,7 @@ static bool run_single_test(data_t *data, enum pipe pipe, igt_output_t *output)
|
||||
igt_plane_set_fb(primary, &fb[!(i&1)]);
|
||||
igt_display_commit(display);
|
||||
|
||||
igt_info(".");
|
||||
fflush(stdout);
|
||||
igt_print_activity();
|
||||
}
|
||||
|
||||
igt_plane_set_fb(primary, NULL);
|
||||
|
||||
+1
-1
@@ -885,7 +885,7 @@ static unsigned int run_test_step(struct test_output *o)
|
||||
join_vblank_wait_thread();
|
||||
}
|
||||
|
||||
igt_info("."); fflush(stdout);
|
||||
igt_print_activity();
|
||||
|
||||
if (do_flip && (o->flags & TEST_HANG)) {
|
||||
hang = hang_gpu(drm_fd);
|
||||
|
||||
Reference in New Issue
Block a user