[PATCH i-g-t 1/6] tests/gem_ctx_engines: Fix gen6+ check

Ville Syrjala ville.syrjala at linux.intel.com
Mon Sep 23 20:45:52 UTC 2024


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Put the parens in the correct spot so that we are actually
checking for gen6+ instead of 'intel_gen() != 0' (which is
always true btw since intel_gen() returns -1 when it doesn't
detect a valid device).

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/intel/gem_ctx_engines.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/intel/gem_ctx_engines.c b/tests/intel/gem_ctx_engines.c
index 94a47ecc3079..24240df66062 100644
--- a/tests/intel/gem_ctx_engines.c
+++ b/tests/intel/gem_ctx_engines.c
@@ -643,7 +643,7 @@ igt_main
 		const intel_ctx_t *ctx;
 
 		igt_require(gem_scheduler_enabled(i915));
-		igt_require(intel_gen(intel_get_drm_devid(i915) >= 6));
+		igt_require(intel_gen(intel_get_drm_devid(i915)) >= 6);
 
 		ctx = intel_ctx_create_all_physical(i915);
 		for_each_ctx_engine(i915, ctx, e) {
-- 
2.44.2



More information about the igt-dev mailing list