diff options
author | Petri Latvala <petri.latvala@intel.com> | 2021-11-18 10:36:52 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2021-11-18 12:19:31 +0200 |
commit | 2e0355faad5c2e81cd6705b76e529ce526c7c9bf (patch) | |
tree | c598ff7c279bd27d1c0f16f931acd4b6cb2074d0 /lib/igt_core.h | |
parent | 2971051d07d02da90c20ccb842e76ee711b02ecb (diff) |
igt_core: Fix docs for SLOW_QUICK
The macro is for choosing between two values depending on whether IGT
has been told it's running in simulation mode. The parameter names and
their documentation was the opposite of what actually happened.
The only user, gem_lut_handle, uses the macro correctly, having the
"use this value in simulation mode" value as the second parameter.
v2: Remove confusion on whether "slow" means "slow test" or "slow
platform" by using "hw" and "sim" instead. (Ashutosh)
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Arkadiusz Hiler <arek@hiler.eu>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Reviewed-by: Ashutosh Dixit <ashutosh.dixit@intel.com>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r-- | lib/igt_core.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h index 6b8dbf34..0aad161d 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -1164,13 +1164,13 @@ void igt_install_exit_handler(igt_exit_handler_t fn); bool igt_run_in_simulation(void); /** * SLOW_QUICK: - * @slow: value in simulation mode - * @quick: value in normal mode + * @sim: value in simulation mode + * @hw: value in normal mode * * Simple macro to select between two values (e.g. number of test rounds or test * buffer size) depending upon whether i-g-t is run in simulation mode or not. */ -#define SLOW_QUICK(slow,quick) (igt_run_in_simulation() ? (quick) : (slow)) +#define SLOW_QUICK(hw, sim) (igt_run_in_simulation() ? (sim) : (hw)) void igt_skip_on_simulation(void); |