From: Daniel Vetter Subject: [PATCH 22/28] lib: s/drmtest_dumb_aub/igt_aub_dump_enabled/ Date: Sun, 23 Mar 2014 15:18:56 +0100 Message-ID: <1395584342-11812-23-git-send-email-daniel.vetter@ffwll.ch> References: <1395584342-11812-1-git-send-email-daniel.vetter@ffwll.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com [74.125.83.48]) by gabe.freedesktop.org (Postfix) with ESMTP id 652716E6AF for ; Sun, 23 Mar 2014 07:19:44 -0700 (PDT) Received: by mail-ee0-f48.google.com with SMTP id b57so3488049eek.7 for ; Sun, 23 Mar 2014 07:19:43 -0700 (PDT) In-Reply-To: <1395584342-11812-1-git-send-email-daniel.vetter@ffwll.ch> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" To: Intel Graphics Development Cc: Daniel Vetter List-Id: intel-gfx@lists.freedesktop.org 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 --- lib/drmtest.c | 2 +- lib/drmtest.h | 2 +- lib/rendercopy_gen8.c | 2 +- tests/gem_render_copy.c | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 3c72ac8dba2c..9fcd221be450 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 97d60d0c29dd..0985109b5247 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 424afa0aefa8..02333cfd8461 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, diff --git a/tests/gem_render_copy.c b/tests/gem_render_copy.c index 12ac18d31251..86ae64385351 100644 --- a/tests/gem_render_copy.c +++ b/tests/gem_render_copy.c @@ -127,7 +127,7 @@ int main(int argc, char **argv) igt_render_copyfunc_t render_copy = NULL; int opt; int opt_dump_png = false; - int opt_dump_aub = drmtest_dump_aub(); + int opt_dump_aub = igt_aub_dump_enabled(); igt_simple_init(); -- 1.8.5.2