From: Damien Lespiau Subject: [PATCH i-g-t 2/5] lib: Rename IGT_QUICK to IGT_SIMULATION Date: Tue, 26 Mar 2013 15:24:36 +0000 Message-ID: <1364311479-20669-3-git-send-email-damien.lespiau@intel.com> References: <1364311479-20669-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 4BA38E5D1E for ; Tue, 26 Mar 2013 08:25:38 -0700 (PDT) In-Reply-To: <1364311479-20669-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+gcfxdi-intel-gfx=m.gmane.org@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org It's more accurate this way as the quick mode is really useful for in the simulation environment. Signed-off-by: Damien Lespiau --- lib/drmtest.c | 10 +++++----- lib/drmtest.h | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index a60a3a6..6e272d7 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -587,14 +587,14 @@ static bool env_set(const char *env_var) return atoi(val) != 0; } -bool drmtest_run_quick(void) +bool drmtest_run_in_simulation(void) { - static int run_quick = -1; + static int simulation = -1; - if (run_quick == -1) - run_quick = env_set("IGT_QUICK"); + if (simulation == -1) + simulation = env_set("IGT_SIMULATION"); - return run_quick; + return simulation; } /* other helpers */ diff --git a/lib/drmtest.h b/lib/drmtest.h index 78732a0..07f971c 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -88,8 +88,8 @@ void drmtest_subtest_init(int argc, char **argv); bool drmtest_run_subtest(const char *subtest_name); bool drmtest_only_list_subtests(void); -bool drmtest_run_quick(void); -#define SLOW_QUICK(slow,quick) (drmtest_run_quick() ? (quick) : (slow)) +bool drmtest_run_in_simulation(void); +#define SLOW_QUICK(slow,quick) (drmtest_run_in_simulation() ? (quick) : (slow)) /* helpers based upon the libdrm buffer manager */ void drmtest_init_aperture_trashers(drm_intel_bufmgr *bufmgr); -- 1.7.11.7