From: Damien Lespiau Date: Mon, 25 Mar 2013 17:25:14 +0000 (+0000) Subject: lib: Rename IGT_QUICK to INTEL_SIMULATION X-Git-Tag: intel-gpu-tools-1.4~312 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c25e892ec339660a5a0c3e0f995a2ce3cbe92135;p=profile%2Fextras%2Fintel-gpu-tools.git lib: Rename IGT_QUICK to INTEL_SIMULATION It's more accurate this way as the quick mode is really useful for in the simulation environment. v2: Use the INTEL_ prefix to have a chance to share the same environment variable as piglit OpenGL tests Signed-off-by: Damien Lespiau --- diff --git a/lib/drmtest.c b/lib/drmtest.c index 011d8c1..76c84b1 100644 --- a/lib/drmtest.c +++ b/lib/drmtest.c @@ -699,14 +699,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("INTEL_SIMULATION"); - return run_quick; + return simulation; } /* other helpers */ diff --git a/lib/drmtest.h b/lib/drmtest.h index e3a9275..5050a5d 100644 --- a/lib/drmtest.h +++ b/lib/drmtest.h @@ -93,8 +93,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);