summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 22:42:35 +0100
committerDaniel Vetter <daniel.vetter@ffwll.ch>2014-03-22 22:42:35 +0100
commit018f8c3c457d1609b18867a48a512e3639979dc9 (patch)
tree954267ab0ba145062b9e714c400a40a2fb88bdf5 /lib
parent95e89f0ede9ed84b5cd0c39b7f68bc08fb120c3b (diff)
lib: s/drmtest_dumb_aub/igt_aub_dump_enabled/
This is prep work to extract a new igt aux library with all kinds of random stuff. Also give it a bit a more suitable name to indicate that this is just a flag and doesn't do the aub dumping itself. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'lib')
-rw-r--r--lib/drmtest.c2
-rw-r--r--lib/drmtest.h2
-rw-r--r--lib/rendercopy_gen8.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 3c72ac8d..9fcd221b 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -329,7 +329,7 @@ bool igt_env_set(const char *env_var, bool default_value)
return atoi(val) != 0;
}
-bool drmtest_dump_aub(void)
+bool igt_aub_dump_enabled(void)
{
static int dump_aub = -1;
diff --git a/lib/drmtest.h b/lib/drmtest.h
index 97d60d0c..0985109b 100644
--- a/lib/drmtest.h
+++ b/lib/drmtest.h
@@ -66,7 +66,7 @@ void igt_permute_array(void *array, unsigned size,
void igt_progress(const char *header, uint64_t i, uint64_t total);
bool igt_env_set(const char *env_var, bool default_value);
-bool drmtest_dump_aub(void);
+bool igt_aub_dump_enabled(void);
/* helpers based upon the libdrm buffer manager */
void igt_init_aperture_trashers(drm_intel_bufmgr *bufmgr);
diff --git a/lib/rendercopy_gen8.c b/lib/rendercopy_gen8.c
index 424afa0a..02333cfd 100644
--- a/lib/rendercopy_gen8.c
+++ b/lib/rendercopy_gen8.c
@@ -120,7 +120,7 @@ static void annotation_add_state(struct annotations_context *ctx,
static void annotation_flush(struct annotations_context *ctx,
struct intel_batchbuffer *batch)
{
- if (!drmtest_dump_aub())
+ if (!igt_aub_dump_enabled())
return;
drm_intel_bufmgr_gem_set_aub_annotations(batch->bo,