[PATCH] tests/kms_async_flips: Only check joiner mode on intel device

george.zhang at amd.com george.zhang at amd.com
Tue Dec 10 20:12:07 UTC 2024


From: George Zhang <george.zhang at amd.com>

The joiner mode check causes the kms_async_flip tests to fail on
non-intel devices. Added a guard to only check the joiner mode if
running on intel device.

Signed-off-by: George Zhang <george.zhang at amd.com>
---
 tests/kms_async_flips.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index 4a72be7b5..5e7c64d73 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -706,8 +706,9 @@ static void run_test(data_t *data, void (*test)(data_t *))
 			 * FIXME: joiner+async flip is busted currently in KMD.
 			 * Remove this check once the issues are fixed in KMD.
 			 */
-			igt_skip_on_f(is_joiner_mode(data->drm_fd, data->output),
-				      "Skipping, async flip not supported on joiner mode\n");
+                        if (is_intel_device(data->drm_fd))
+			    igt_skip_on_f(is_joiner_mode(data->drm_fd, data->output),
+				          "Skipping, async flip not supported on joiner mode\n");
 			test_init_fbs(data);
 			test(data);
 		}
@@ -733,10 +734,11 @@ static void run_test_with_modifiers(data_t *data, void (*test)(data_t *))
 				       * FIXME: joiner+async flip is busted currently in KMD.
 				       * Remove this check once the issues are fixed in KMD.
 				       */
-				      igt_skip_on_f(is_joiner_mode(data->drm_fd,
+                                        if (is_intel_device(data->drm_fd))
+				            igt_skip_on_f(is_joiner_mode(data->drm_fd,
 								   data->output),
-						    "Skipping, async flip not supported "
-						    "on joiner mode\n");
+						          "Skipping, async flip not supported "
+						          "on joiner mode\n");
 				      test_init_fbs(data);
 				      test(data);
 			}
-- 
2.34.1



More information about the igt-dev mailing list