[PATCH i-g-t v1 3/3] tests/xe_ccs: Check if platform supports compression

Akshata Jahagirdar akshata.jahagirdar at intel.com
Tue Mar 26 09:54:38 UTC 2024


Add check before running the test to ensure the platform supports
compression and has flat ccs enabled.

Signed-off-by: Akshata Jahagirdar <akshata.jahagirdar at intel.com>
---
 tests/intel/xe_ccs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tests/intel/xe_ccs.c b/tests/intel/xe_ccs.c
index 8fe1f62eb..b424a1d6d 100644
--- a/tests/intel/xe_ccs.c
+++ b/tests/intel/xe_ccs.c
@@ -718,6 +718,7 @@ igt_main_args("bf:pst:W:H:", NULL, help_str, opt_handler, NULL)
 	igt_fixture {
 		xe = drm_open_driver(DRIVER_XE);
 		igt_require(blt_has_block_copy(xe));
+		igt_require(blt_platform_supports_compression(xe));
 		if (AT_LEAST_GEN(xe, 20))
 			igt_require(HAS_FLATCCS(xe));
 
-- 
2.34.1



More information about the igt-dev mailing list