[igt-dev] [PATCH i-g-t] tests/gem_lmem_swapping: Use feature macro instead checking platform

Zbigniew Kempczyński zbigniew.kempczynski at intel.com
Tue Dec 6 07:42:09 UTC 2022


Avoid future subtest modification for *-ccs subtests by using
HAS_FLATCCS() feature macro.

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 tests/i915/gem_lmem_swapping.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/i915/gem_lmem_swapping.c b/tests/i915/gem_lmem_swapping.c
index 969fb9080b..75121d4194 100644
--- a/tests/i915/gem_lmem_swapping.c
+++ b/tests/i915/gem_lmem_swapping.c
@@ -581,7 +581,7 @@ static void test_evict(int i915,
 	struct params params;
 
 	if (flags & TEST_CCS)
-		igt_require(IS_DG2(intel_get_drm_devid(i915)));
+		igt_require(HAS_FLATCCS(intel_get_drm_devid(i915)));
 
 	fill_params(i915, &params, region, flags, nproc, false);
 
-- 
2.34.1



More information about the igt-dev mailing list