diff options
author | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-04-18 09:53:47 +0200 |
---|---|---|
committer | Tomeu Vizoso <tomeu.vizoso@collabora.com> | 2016-04-25 14:21:35 +0200 |
commit | b7135575e7dfb7b610afeb08ac2b70f50d28c79e (patch) | |
tree | ce662157dfa6dbb4a2dec8ed3984bc603c4d8c6a | |
parent | 0b741cec0ebfb4b772768aeb2f711b1eb34397a8 (diff) |
tests/kms_flip_event_leak: Open DRM device with DRIVER_ANY
So that this test can be run in drivers other than i915.
Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Series-version: 1
Series-to: intel-gfx
Series-cc: padovan, daniels, marcheu, seanpaul, xexaxo, fedkem, mvlad, danvet
Series-prefix: i-g-t
Cover-letter:
Make more tests generic
Hi,
these patches allow a few more tests to run on drivers other than i915,
mainly by removing the last usage of
DRM_IOCTL_I915_GET_PIPE_FROM_CRTC_ID and removing superfluous dependencies
on bufmgr and tiled BOs.
Thanks,
Tomeu
END
-rw-r--r-- | tests/kms_flip_event_leak.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/kms_flip_event_leak.c b/tests/kms_flip_event_leak.c index 0a4a755e..a1389b4c 100644 --- a/tests/kms_flip_event_leak.c +++ b/tests/kms_flip_event_leak.c @@ -68,7 +68,7 @@ static bool test(data_t *data, enum pipe pipe, igt_output_t *output) igt_plane_set_fb(primary, &fb[0]); igt_display_commit2(&data->display, COMMIT_LEGACY); - fd = drm_open_driver(DRIVER_INTEL); + fd = drm_open_driver(DRIVER_ANY); ret = drmDropMaster(data->drm_fd); igt_assert_eq(ret, 0); @@ -109,7 +109,7 @@ igt_simple_main igt_skip_on_simulation(); - data.drm_fd = drm_open_driver_master(DRIVER_INTEL); + data.drm_fd = drm_open_driver_master(DRIVER_ANY); kmstest_set_vt_graphics_mode(); igt_display_init(&data.display, data.drm_fd); |