summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2021-01-11 18:10:57 +0200
committerVille Syrjälä <ville.syrjala@linux.intel.com>2021-01-22 14:21:12 +0200
commit0949766cb9846d7d55fac9cdf31d3d8e8ed1d0c6 (patch)
treed89d1fe5bef581dcd9c70c86e464a05b02f0e541 /tests
parentdeefea126686736fdeb8ceccd00892c840b8bc6b (diff)
tests/kms_async_flips: Skip the Y<->X tile test on pre-skl
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@linux.intel.com> Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/kms_async_flips.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c
index dea23cf9..e397a54b 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);