diff options
author | Mika Kahola <mika.kahola@intel.com> | 2019-04-09 15:19:22 +0300 |
---|---|---|
committer | Mika Kahola <mika.kahola@intel.com> | 2019-04-10 10:21:40 +0300 |
commit | 256c6107ee127d2ff07d23dfeb3b8d828cb43b37 (patch) | |
tree | 96033a4093bc24c4c7f4cfefcc36faaa70ff71de | |
parent | 6c1426f61d6b4e6454a1c5fca88bbda597878018 (diff) |
tests/kms_plane_scaling: Check supported pixel format
Let's add a check for supported pixel format. Otherwise, we fail the test,
for example, with the following error message
"[drm:intel_framebuffer_init [i915]] unsupported pixel format Y210 little-endian
(0x30313259) / modifier 0x100000000000003"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=110369
Signed-off-by: Mika Kahola <mika.kahola@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
-rw-r--r-- | tests/kms_plane_scaling.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/kms_plane_scaling.c b/tests/kms_plane_scaling.c index bb14b2cd..e843bf86 100644 --- a/tests/kms_plane_scaling.c +++ b/tests/kms_plane_scaling.c @@ -232,7 +232,8 @@ static void test_scaler_with_pixel_format_pipe(data_t *d, enum pipe pipe, igt_ou for (int j = 0; j < plane->drm_plane->count_formats; j++) { uint32_t format = plane->drm_plane->formats[j]; - if (igt_fb_supported_format(format)) + if (igt_fb_supported_format(format) && + igt_plane_has_format_mod(plane, format, tiling)) check_scaling_pipe_plane_rot(d, plane, format, tiling, pipe, output, IGT_ROTATION_0); |