summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/drmtest.c10
-rw-r--r--lib/drmtest.h2
2 files changed, 12 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 0e65cdd8..efd8fd32 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -1216,6 +1216,16 @@ void igt_skip_on_simulation(void)
igt_require(!igt_run_in_simulation());
}
+bool drmtest_dump_aub(void)
+{
+ static int dump_aub = -1;
+
+ if (dump_aub == -1)
+ dump_aub = env_set("IGT_DUMP_AUB", false);
+
+ return dump_aub;
+}
+
/* other helpers */
void igt_exchange_int(void *array, unsigned i, unsigned j)
{
diff --git a/lib/drmtest.h b/lib/drmtest.h
index b7909df8..3a3900ef 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -304,6 +304,8 @@ bool igt_run_in_simulation(void);
*/
void igt_skip_on_simulation(void);
+bool drmtest_dump_aub(void);
+
/* helpers based upon the libdrm buffer manager */
void igt_init_aperture_trashers(drm_intel_bufmgr *bufmgr);
void igt_trash_aperture(void);