[PATCH i-g-t v4 7/8] tests/kms_color_pipeline: skip if not an Intel device

Melissa Wen <[email protected]>
Newsgroups org.freedesktop.lists.igt-dev
Message-ID <[email protected]>
According to its documentation, the test requires i915 or xe driver, so
make sure it only runs with Intel devices. In addition, this is a
CRC-based test, while kms_colorop uses writeback, which is better
aligned with color testing and validation. Other drivers should adapt
this test if they are looking for CRC validation.

Reviewed-by: Chaitanya Kumar Borah <[email protected]>
Signed-off-by: Melissa Wen <[email protected]>
---

v3:
- do intel device check earlier
---
 tests/kms_color_pipeline.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/kms_color_pipeline.c b/tests/kms_color_pipeline.c
index f71416ce1..250a27d7f 100644
--- a/tests/kms_color_pipeline.c
+++ b/tests/kms_color_pipeline.c
@@ -367,6 +367,8 @@ int igt_main()
 		if (drmSetClientCap(data.drm_fd, DRM_CLIENT_CAP_PLANE_COLOR_PIPELINE, 1) == 0)
 			has_plane_color_pipeline = 1;
 
+		igt_require(is_intel_device(data.drm_fd));
+
 		kmstest_set_vt_graphics_mode();
 
 		igt_display_require(&data.display, data.drm_fd);
-- 
2.53.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.