enum load load;
bool exit;
struct igt_helper_process igt_proc;
+ drm_intel_bo *src, *dst;
} lh;
static void load_helper_signal_handler(int sig)
}
#define LOAD_HELPER_PAUSE_USEC 500
+#define LOAD_HELPER_BO_SIZE (16*1024*1024)
static void load_helper_set_load(enum load load)
{
assert(lh.igt_proc.running);
signal(SIGUSR2, load_helper_signal_handler);
while (!lh.exit) {
+ if (lh.load == HIGH)
+ intel_copy_bo(lh.batch, lh.dst, lh.dst,
+ LOAD_HELPER_BO_SIZE);
+
emit_store_dword_imm(val);
intel_batchbuffer_flush_on_ring(lh.batch, 0);
val++;
lh.target_buffer = drm_intel_bo_alloc(lh.bufmgr, "target bo",
4096, 4096);
igt_assert(lh.target_buffer);
+
+ lh.dst = drm_intel_bo_alloc(lh.bufmgr, "dst bo",
+ LOAD_HELPER_BO_SIZE, 4096);
+ igt_assert(lh.dst);
+ lh.src = drm_intel_bo_alloc(lh.bufmgr, "src bo",
+ LOAD_HELPER_BO_SIZE, 4096);
+ igt_assert(lh.src);
}
static void load_helper_deinit(void)