diff options
author | Bhanuprakash Modem <bhanuprakash.modem@intel.com> | 2021-07-17 05:08:42 +0530 |
---|---|---|
committer | Kunal Joshi <kunal1.joshi@intel.com> | 2021-07-19 18:18:42 +0530 |
commit | 6caef22e4aafed275771f564d4ea4cab09896ebc (patch) | |
tree | ff62985a80ec688fd860e32a61c3767339db78cb /tests/kms_dither.c | |
parent | e93b651b955c44a6ebd53368faec1d856a8df3a1 (diff) |
tests/kms_dither: Make dither tests generic
As dithering is not Intel specific, it would be good to make
these tests generic, so that it can be easy to extend/re-use
for other platforms.
V2:
* Use igt_require_intel() instead of igt_require(is_i915_device())
Cc: Uma Shankar <uma.shankar@intel.com>
Cc: Mark Yacoub <markyacoub@chromium.org>
Cc: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Bhanuprakash Modem <bhanuprakash.modem@intel.com>
Reviewed-by: Mark Yacoub <markyacoub@chromium.org>
Diffstat (limited to 'tests/kms_dither.c')
-rw-r--r-- | tests/kms_dither.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/kms_dither.c b/tests/kms_dither.c index 49f793526..ae21cc766 100644 --- a/tests/kms_dither.c +++ b/tests/kms_dither.c @@ -93,6 +93,8 @@ static dither_status_t get_dither_state(data_t *data) dir = igt_debugfs_dir(data->drm_fd); igt_assert(dir >= 0); + igt_require_intel(data->drm_fd); + res = igt_debugfs_simple_read(dir, "i915_display_info", buf, sizeof(buf)); igt_require(res > 0); close(dir); @@ -230,7 +232,7 @@ igt_main data_t data = { 0 }; igt_fixture { - 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_require(&data.display, data.drm_fd); |