[igt-dev] [PATCH i-g-t] tests/kms_async_flips: Skip the Y<->X tile test on pre-skl

Ville Syrjala ville.syrjala at linux.intel.com
Mon Jan 11 16:16:58 UTC 2021


From: Ville Syrjälä <ville.syrjala at linux.intel.com>

Pre-skl display engine does not support Y-tiling so the
addfb will fail. Skip the test on such platforms.

Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
 tests/kms_async_flips.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index dea23cf9ef15..e397a54b874f 100644
--- a/tests/kms_async_flips.c
+++ b/tests/kms_async_flips.c
@@ -335,6 +335,9 @@ static void test_invalid(data_t *data)
 	width = data->connector->modes[0].hdisplay;
 	height = data->connector->modes[0].vdisplay;
 
+	igt_require(igt_display_has_format_mod(&data->display, DRM_FORMAT_XRGB8888,
+					       LOCAL_I915_FORMAT_MOD_Y_TILED));
+
 	igt_create_fb(data->drm_fd, width, height, DRM_FORMAT_XRGB8888,
 		      LOCAL_I915_FORMAT_MOD_Y_TILED, &fb);
 
-- 
2.26.2



More information about the igt-dev mailing list