Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t] igt_core: Fix docs for SLOW_QUICK
@ 2021-11-17 10:42 Petri Latvala
  2021-11-17 11:59 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Petri Latvala @ 2021-11-17 10:42 UTC (permalink / raw)
  To: igt-dev; +Cc: Petri Latvala

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.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Arkadiusz Hiler <arek@hiler.eu>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
---
 lib/igt_core.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/igt_core.h b/lib/igt_core.h
index 6b8dbf34..077e1bf3 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -1170,7 +1170,7 @@ bool igt_run_in_simulation(void);
  * 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(quick,slow) (igt_run_in_simulation() ? (slow) : (quick))
 
 void igt_skip_on_simulation(void);
 
-- 
2.29.2

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2021-11-19  5:43 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 10:42 [igt-dev] [PATCH i-g-t] igt_core: Fix docs for SLOW_QUICK Petri Latvala
2021-11-17 11:59 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-11-17 16:44 ` [igt-dev] [PATCH i-g-t] " Dixit, Ashutosh
2021-11-17 20:34   ` Dixit, Ashutosh
2021-11-18  8:30     ` Petri Latvala
2021-11-17 19:51 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork
2021-11-18  8:31   ` Petri Latvala
2021-11-18 16:27     ` Vudum, Lakshminarayana
2021-11-18  8:36 ` [igt-dev] [PATCH i-g-t v2] " Petri Latvala
2021-11-18  8:52   ` Dixit, Ashutosh
2021-11-18 10:12 ` [igt-dev] ✗ Fi.CI.BAT: failure for igt_core: Fix docs for SLOW_QUICK (rev2) Patchwork
2021-11-18 10:19   ` Petri Latvala
2021-11-18 16:14 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2021-11-19  5:43 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox