diff options
author | Matt Roper <matthew.d.roper@intel.com> | 2021-06-04 13:39:23 -0700 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2021-06-07 19:36:57 -0700 |
commit | 4f9258baaeeae9daa9583cfa7589d1c21668ce6b (patch) | |
tree | ec1a77e8332cc83b5d014bdd1100302b50eaa402 /tests/kms_hdmi_inject.c | |
parent | afaa6eee9d959c7e9be27f8c838b9019456e7e9f (diff) |
lib/i915: Add intel_display_ver() and use it in display tests/libs
Display code should check the display version of the platform rather
than the graphics version; on some platforms these versions won't be the
same.
v2:
- Continue to use intel_gen() in draw_rect_blt() since it's checking
the version of the blitter engine (graphics) rather than the display
version. (Jose)
- Rename some gen -> display_ver in kms_universal_plane too. (Jose)
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'tests/kms_hdmi_inject.c')
-rw-r--r-- | tests/kms_hdmi_inject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_hdmi_inject.c b/tests/kms_hdmi_inject.c index 1769df08..b47b8a39 100644 --- a/tests/kms_hdmi_inject.c +++ b/tests/kms_hdmi_inject.c @@ -87,7 +87,7 @@ hdmi_inject_4k(int drm_fd, drmModeConnector *connector) devid = intel_get_drm_devid(drm_fd); /* 4K requires at least HSW */ - igt_require(IS_HASWELL(devid) || intel_gen(devid) >= 8); + igt_require(IS_HASWELL(devid) || intel_display_ver(devid) >= 8); edid = igt_kms_get_4k_edid(); kmstest_force_edid(drm_fd, connector, edid); |