[igt-dev] [PATCH i-g-t 3/3] tests/kms_color: Enable color tests for AMDGPU
sunpeng.li at amd.com
sunpeng.li at amd.com
Thu Apr 12 21:37:26 UTC 2018
From: "Leo (Sunpeng) Li" <sunpeng.li at amd.com>
Signed-off-by: Leo (Sunpeng) Li <sunpeng.li at amd.com>
---
tests/kms_color.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/kms_color.c b/tests/kms_color.c
index 1e51917..bb106dd 100644
--- a/tests/kms_color.c
+++ b/tests/kms_color.c
@@ -1158,8 +1158,9 @@ igt_main
igt_skip_on_simulation();
igt_fixture {
- data.drm_fd = drm_open_driver_master(DRIVER_INTEL);
- data.devid = intel_get_drm_devid(data.drm_fd);
+ data.drm_fd = drm_open_driver_master(DRIVER_INTEL | DRIVER_AMDGPU);
+ if (is_i915_device(data.drm_fd))
+ data.devid = intel_get_drm_devid(data.drm_fd);
kmstest_set_vt_graphics_mode();
igt_display_init(&data.display, data.drm_fd);
--
2.7.4
More information about the igt-dev
mailing list