diff options
author | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2019-10-07 22:47:46 +0300 |
---|---|---|
committer | Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com> | 2019-10-08 15:42:40 +0300 |
commit | b2e51cc6dfcf198afbd9c5e51fbb4b40d930627e (patch) | |
tree | a4af3f5098eb6c2c8b44b5e9c96de6c8e542b655 /tests/kms_rotation_crc.c | |
parent | 21fbdad0dafbb398d816e7d296167993bcb69758 (diff) |
tests/kms_rotation_crc: Check requested format/mod combo is supported
Avoid failing test for wrong reasons.
Reviewed-by: Mika Kahola <mika.kahola@intel.com>
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Diffstat (limited to 'tests/kms_rotation_crc.c')
-rw-r--r-- | tests/kms_rotation_crc.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/kms_rotation_crc.c b/tests/kms_rotation_crc.c index 668c1732..19852675 100644 --- a/tests/kms_rotation_crc.c +++ b/tests/kms_rotation_crc.c @@ -252,6 +252,12 @@ static void prepare_fbs(data_t *data, igt_output_t *output, } /* + * Just try here if requested tiling format is generally available, + * if one format fail it will skip entire subtest. + */ + igt_require(igt_display_has_format_mod(display, pixel_format, tiling)); + + /* * Create a reference software rotated flip framebuffer. */ igt_create_fb(data->gfx_fd, ref_w, ref_h, pixel_format, tiling, |